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 159 of file aliroComponentManager.php.


Constructor & Destructor Documentation

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

Definition at line 168 of file aliroComponentManager.php.

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

00168                                                                                                                        {
00169         parent::__construct($component, $system, $version);
00170         $this->menu = $menu;
00171         $this->SetPageTitle($title);
00172         $this->func = $this->getParam ($_REQUEST, $control_name, $default);
00173         if (isset($alternatives[$this->func])) $this->method = $alternatives[$this->func];
00174         else $this->method = $this->func;
00175         $this->classname = $this->barename.'_'.$this->method.'_Controller';
00176 
00177         if (class_exists($this->classname)) $this->controller = call_user_func(array($this->classname, 'getInstance'), $this);
00178         else trigger_error(sprintf(T_('Aliro error in %s: class not found %s'), $this->formalname, $this->classname));
00179     }


Member Function Documentation

aliroComponentUserManager::activate (  ) 

Definition at line 181 of file aliroComponentManager.php.

References aliroComponentManager::noMagicQuotes(), and T_().

00181                                {
00182         $this->noMagicQuotes();
00183         $cmethod = $this->method;
00184         if (method_exists($this->controller,$cmethod)) $this->controller->$cmethod($this->func);
00185         else trigger_error (sprintf(T_('Component %s error: attempt to use non-existent method %s in %s'), $this->formalname, $this->method, $this->classname));
00186     }


Member Data Documentation

aliroComponentUserManager::$func [private]

Definition at line 160 of file aliroComponentManager.php.

aliroComponentUserManager::$method [private]

Definition at line 161 of file aliroComponentManager.php.

aliroComponentUserManager::$classname [private]

Definition at line 162 of file aliroComponentManager.php.

aliroComponentUserManager::$controller [private]

Definition at line 163 of file aliroComponentManager.php.

aliroComponentUserManager::$menu = null

Definition at line 164 of file aliroComponentManager.php.

Referenced by __construct().

aliroComponentUserManager::$limit = 10

Definition at line 165 of file aliroComponentManager.php.

aliroComponentUserManager::$limitstart = 0

Definition at line 166 of file aliroComponentManager.php.


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

Generated on Thu Apr 17 13:03:29 2008 for ALIRO by  doxygen 1.5.5