Controllers
Admin Controller
Admin Controller
The logic behind the Admin area.
Summary
| Admin Controller | The logic behind the Admin area. |
| Variables | |
| $displayed | Has anything been displayed? |
| $context | Contains the context for various admin pages, to be passed to the Twig templates. |
| $selected_bookmarklet | Holds the name of the Feather to be selected when they open the bookmarklet. |
| $base | The base path for this controller. |
| Functions | |
| __construct | Prepares Twig. |
| parse | Determines the action. |
| write | Post writing. |
| bookmarklet | Post writing, from the bookmarklet. |
| add_post | Adds a post when the form is submitted. |
| edit_post | Post editing. |
| update_post | Updates a post when the form is submitted. |
| delete_post | Post deletion (confirm page). |
| destroy_post | Destroys a post (the real deal). |
| manage_posts | Post managing. |
| write_page | Page creation. |
| add_page | Adds a page when the form is submitted. |
| edit_page | Page editing. |
| update_page | Updates a page when the form is submitted. |
| reorder_pages | Reorders pages. |
| delete_page | Page deletion (confirm page). |
| destroy_page | Destroys a page. |
| manage_pages | Page managing. |
| new_user | User creation. |
| add_user | Add a user when the form is submitted. |
| edit_user | User editing. |
| update_user | Updates a user when the form is submitted. |
| delete_user | User deletion. |
| destroy_user | Destroys a user. |
| manage_users | User managing. |
| new_group | Group creation. |
| add_group | Adds a group when the form is submitted. |
| edit_group | Group editing. |
| update_group | Updates a group when the form is submitted. |
| delete_group | Group deletion (confirm page). |
| destroy_group | Destroys a group. |
| manage_groups | Group managing. |
| export | Export posts, pages, etc. |
| import | Importing content from other systems. |
| import_chyrp | Chyrp importing. |
| import_wordpress | WordPress importing. |
| import_tumblr | Tumblr importing. |
| import_textpattern | TextPattern importing. |
| import_movabletype | MovableType importing. |
| modules | Module enabling/disabling. |
| feathers | Feather enabling/disabling. |
| themes | Theme switching/previewing. |
| enable | Enables a module or feather. |
| disable | Disables a module or feather. |
| change_theme | Changes the theme. |
| preview_theme | Previews the theme. |
| general_settings | General Settings page. |
| user_settings | User Settings page. |
| content_settings | Content Settings page. |
| route_settings | Route Settings page. |
| help | Sets the $title and $body for various help IDs. |
| subnav_context | Generates the context variables for the subnav. |
| display | Renders the page. |
| current | Returns a singleton reference to the current class. |
display
| public function display( | $action, | |||
| $context | = | array(), | ||
| $title | = | "" | ) |
Renders the page.
Parameters
| $action | The template file to display, in /admin/layout/pages. |
| $context | Context for the template. |
| $title | The title for the page. Defaults to a camlelization of the action, e.g. foo_bar -> Foo Bar. |