aliroComponentUserManager Class Reference

Inheritance diagram for aliroComponentUserManager:

aliroComponentManager aliroFriendlyBase

List of all members.

Public Member Functions

 __construct ($component, $control_name, $alternatives, $default, $title, $system, $version, $menu)
 activate ()

Public Attributes

 $menu = null
 $limit = 10
 $limitstart = 0

Private Attributes

 $func
 $method
 $classname
 $controller


Detailed Description

Component base logic for user side

Definition at line 160 of file aliroComponentManager.php.


Constructor & Destructor Documentation

aliroComponentUserManager::__construct ( component,
control_name,
alternatives,
default,
title,
system,
version,
menu 
)

Definition at line 169 of file aliroComponentManager.php.

References $_REQUEST, $menu, aliroComponentManager::$system, aliroFriendlyBase::getParam(), and menu.

00169                                                                                                                        {
00170         parent::__construct($component, $system, $version);
00171         $this->menu = $menu;
00172         if ($title) $this->SetPageTitle($title);
00173         $this->func = $this->getParam ($_REQUEST, $control_name, $default);
00174         if (isset($alternatives[$this->func])) $this->method = $alternatives[$this->func];
00175         else $this->method = $this->func;
00176         $this->classname = $this->barename.'_'.$this->method.'_Controller';
00177 
00178         if (class_exists($this->classname)) $this->controller = call_user_func(array($this->classname, 'getInstance'), $this);
00179         else new aliroPage404();
00180     }


Member Function Documentation

aliroComponentUserManager::activate (  ) 

Definition at line 182 of file aliroComponentManager.php.

References aliroComponentManager::noMagicQuotes().

00182                                {
00183         $this->noMagicQuotes();
00184         $cmethod = $this->method;
00185         if (method_exists($this->controller,$cmethod)) $this->controller->$cmethod($this->func);
00186         else new aliroPage404();
00187     }


Member Data Documentation

aliroComponentUserManager::$func [private]

Definition at line 161 of file aliroComponentManager.php.

aliroComponentUserManager::$method [private]

Definition at line 162 of file aliroComponentManager.php.

aliroComponentUserManager::$classname [private]

Definition at line 163 of file aliroComponentManager.php.

aliroComponentUserManager::$controller [private]

Definition at line 164 of file aliroComponentManager.php.

aliroComponentUserManager::$menu = null

Definition at line 165 of file aliroComponentManager.php.

Referenced by __construct().

aliroComponentUserManager::$limit = 10

Definition at line 166 of file aliroComponentManager.php.

aliroComponentUserManager::$limitstart = 0

Definition at line 167 of file aliroComponentManager.php.


The documentation for this class was generated from the following file:

Generated on Wed May 14 13:01:58 2008 for ALIRO by  doxygen 1.5.5