tina_mvc/admin_pages/admin_functions.php

Show: PublicProtectedPrivateinherited
Table of Contents
Utility functions for managing the plugin

Install, remove, and other infrequently used actions are stored here to keep the main plugin file small.

Package
Tina-MVC  
Subpackage
Core  

Functions

functionactivation_error(string $message = '', integer $errno = E_USER_ERROR) : void

Displays any error on plugin activation

Parameters
NameTypeDescription
$messagestring
$errnointeger

PHP error constant

Details
Package
Tina-MVC  
Subpackage
Core  
functiondefault_controller_page_content() : string

The default page/post content for a Tina MVC front end controller page.

Used on plugin activation

Returns
TypeDescription
stringdefault page content
Details
Package
Tina-MVC  
Subpackage
Core  
functionhpt_backup() : void

Backup files before plugin upgrade

Thanks to Clay Lua (http://hungred.com) for illustrating the technique

Details
Package
Tina-MVC  
Subpackage
Core  
Uses
\TINA_MVC\utils\hpt_copyr()  
functionhpt_copyr(string $source, string $dest) : boolean

Generic copy utility

Thanks to Clay Lua (http://hungred.com) for illustrating the technique

Parameters
NameTypeDescription
$sourcestring
$deststring
Returns
TypeDescription
booleantrue
Details
Package
Tina-MVC  
Subpackage
Core  
functionhpt_recover() : void

Recover files after plugin upgrade

Thanks to Clay Lua (http://hungred.com) for illustrating the technique

Details
Package
Tina-MVC  
Subpackage
Core  
Uses
\TINA_MVC\utils\hpt_copyr()  
functionhpt_rmdirr(string $dirname) : bool

Delete a file, or a folder and its contents

Parameters
NameTypeDescription
$dirnamestring

Directory to delete

Returns
TypeDescription
boolReturns TRUE on success, FALSE on failure
Details
Author
Aidan Lister  
Package
Tina-MVC  
See
\TINA_MVC\utils\http://putraworks.wordpress.com/2006/02/27/php-delete-a-file-or-a-folder-and-its-contents/  
Subpackage
Core  
Version
1.0.2  
functionplugin_activate(boolean $upgrading) : void

Set up or upgrade the plugin

Parameters
NameTypeDescription
$upgradingboolean
Details
Package
Tina-MVC  
Subpackage
Core  
functionplugin_remove() : void

Trashes any pages set up as front end page controllers and removes the Tina MVC options

Details
Package
Tina-MVC  
Subpackage
Core  

\TINA_MVC\utils\admin_options_page

Package: Tina-MVC\Core
Sets up the admin menu and pages in the Wordpress administration screen for Tina MVC documentation

Methods

methodpublic__construct() : void

Hooks into the Wordpress admin menu

methodpublicadmin_menu() : void

Sets up the admin menu and entries for Tina MVC documentation

methodpublicadmin_page_adding_models() : void

Calls the adding_models controller for Tina MVC documentation

methodpublicadmin_page_code_hooks() : void

Calls the code_hooks controller for Tina MVC documentation

methodpublicadmin_page_custom_login() : void

Calls the custom_login controller for Tina MVC documentation

methodpublicadmin_page_file_locations() : void

Calls the file_locations controller for Tina MVC documentation

methodpublicadmin_page_form_helper_advanced() : void

Calls the form_helper_advanced controller for Tina MVC documentation

methodpublicadmin_page_form_helper_fields_and_validation() : void

Calls the form_helper_fields_and_validation controller for Tina MVC documentation

methodpublicadmin_page_form_helper_intro() : void

Calls the form_helper_intro controller for Tina MVC documentation

methodpublicadmin_page_hello_world() : void

Calls the hello_world controller for Tina MVC documentation

methodpublicadmin_page_helper_functions() : void

Calls the helper_functions controller for Tina MVC documentation

methodpublicadmin_page_index() : void

Calls the index controller for Tina MVC documentation

methodpublicadmin_page_table_and_pagination_helpers() : void

Calls the table_and_pagination_helpers controller for Tina MVC documentation

methodpublicadmin_page_todo_list() : void

Calls the todo_list controller for Tina MVC documentation

methodpublicadmin_page_using_views() : void

Calls the using_views controller for Tina MVC documentation

methodpublicadmin_page_widgets_shortcodes() : void

Calls the widgets_shortcodes controller for Tina MVC documentation

Documentation was generated by phpDocumentor 2.0.0a12.