[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/controller/ -> blogcontroller.class.php (sommaire)

(pas de description)

Poids: 77 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 3 fois
Nécessite: 1 fichier
 class/controller/controllermap.properties.php

Définit 1 class

BlogController:: (3 méthodes):
  BlogController()
  registerAction()
  _loadActionMaps()


Classe: BlogController  - X-Ref

\ingroup Controller

Extends the Controller class so that the operation of loading the
file with the mappings is done automatically. The default action parameter becomes
"op" and the file class/controller/controllermap.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.

BlogController()   X-Ref
Constructor. Automatically loads the maps


registerAction( $actionKey, $actionClass )   X-Ref
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 <b>only for the public side</b>. In
case of plugins, please use PluginBase::registerBlogAction() and PluginBase::registerAdminAction()
which will nicely hide all these things from you.

param: actionKey Action key to add
param: actionClass Action class to which the class will map

_loadActionMaps()   X-Ref
Loads the maps




Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics