
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 | |
Definition at line 159 of file aliroComponentManager.php.
| 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 }
| 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 }
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 |
| aliroComponentUserManager::$limit = 10 |
Definition at line 165 of file aliroComponentManager.php.
| aliroComponentUserManager::$limitstart = 0 |
Definition at line 166 of file aliroComponentManager.php.
1.5.5