NewsFeaturesDownloadsDevelopmentSupportAbout Us

AdminController Class Reference
[Controller]

Inherits Controller.

List of all members.


Public Member Functions

 AdminController ()
 registerAction ($actionKey, $actionClass)

Private Member Functions

 _loadActionMaps ()

Detailed Description

Extends the Controller class so that the operation of loading the file with the mappings for admin.php is done automatically. The default action parameter becomes "op" and the file class/controller/admincontrollermap.class.php will be used as the default action class map.

You will rarely need to use this class in real life, see the main Controller class.

See also:
Controller

Definition at line 21 of file admincontroller.class.php.


Member Function Documentation

AdminController._loadActionMaps (  )  [private]

Loads the maps

Definition at line 73 of file admincontroller.class.php.

References $actions.

Referenced by AdminController().

AdminController.AdminController (  ) 

Constructor. Automatically loads the maps

Definition at line 27 of file admincontroller.class.php.

References $_plogAdminController_running, $actionMap, _loadActionMaps(), Controller.Controller(), and Controller.setActionFolderPath().

AdminController.registerAction ( actionKey,
actionClass 
)

If a plugin adds an action for the public side and an action for the admin side, the action will be accessible via both index.php?op=theActionName and admin.php?op=theActionName. We will use use a global variable that is initialized when the constructor of this class is called. If that variable is set to 'true', then it means that our constructor was initialized and that we can go ahead and add the action. If not, then we skip the whole thing and the action is not added.

This method should therefore be called when adding new actions but only for the public side. In case of plugins, please use PluginBase.registerBlogAction() and PluginBase.registerAdminAction() which will nicely hide all these things from you.

Parameters:
actionKey Action key to add
actionClass Action class to which the class will map
See also:
Controller

Reimplemented from Controller.

Definition at line 58 of file admincontroller.class.php.

References $_plogAdminController_running, and Controller.registerAction().

Referenced by PluginBase.registerAdminAction().