tina_mvc/admin_pages/admin_functions.php
Install, remove, and other infrequently used actions are stored here to keep the main plugin file small.
- Package
- Tina-MVC
- Subpackage
- Core
Functions
activation_error(string $message = '', integer $errno = E_USER_ERROR) : voidDisplays any error on plugin activation
| Name | Type | Description |
|---|---|---|
| $message | string | |
| $errno | integer | PHP error constant |
- Package
- Tina-MVC
- Subpackage
- Core
default_controller_page_content() : stringThe default page/post content for a Tina MVC front end controller page.
Used on plugin activation
| Type | Description |
|---|---|
| string | default page content |
- Package
- Tina-MVC
- Subpackage
- Core
hpt_backup() : voidBackup files before plugin upgrade
Thanks to Clay Lua (http://hungred.com) for illustrating the technique
- Package
- Tina-MVC
- Subpackage
- Core
- Uses
- \TINA_MVC\utils\hpt_copyr()
hpt_copyr(string $source, string $dest) : booleanGeneric copy utility
Thanks to Clay Lua (http://hungred.com) for illustrating the technique
| Name | Type | Description |
|---|---|---|
| $source | string | |
| $dest | string |
| Type | Description |
|---|---|
| boolean | true |
- Package
- Tina-MVC
- Subpackage
- Core
hpt_recover() : voidRecover files after plugin upgrade
Thanks to Clay Lua (http://hungred.com) for illustrating the technique
- Package
- Tina-MVC
- Subpackage
- Core
- Uses
- \TINA_MVC\utils\hpt_copyr()
hpt_rmdirr(string $dirname) : boolDelete a file, or a folder and its contents
| Name | Type | Description |
|---|---|---|
| $dirname | string | Directory to delete |
| Type | Description |
|---|---|
| bool | Returns TRUE on success, FALSE on failure |
- 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
plugin_activate(boolean $upgrading) : voidSet up or upgrade the plugin
| Name | Type | Description |
|---|---|---|
| $upgrading | boolean |
- Package
- Tina-MVC
- Subpackage
- Core
\TINA_MVC\utils\admin_options_page
Methods

admin_page_form_helper_advanced() : voidCalls the form_helper_advanced controller for Tina MVC documentation

admin_page_form_helper_fields_and_validation() : voidCalls the form_helper_fields_and_validation controller for Tina MVC documentation

admin_page_form_helper_intro() : voidCalls the form_helper_intro controller for Tina MVC documentation

admin_page_helper_functions() : voidCalls the helper_functions controller for Tina MVC documentation

admin_page_table_and_pagination_helpers() : voidCalls the table_and_pagination_helpers controller for Tina MVC documentation