
Public Member Functions | |
| load ($oid=null) | |
| getParams () | |
| linkComponentData ($component) | |
Protected Attributes | |
| $DBclass = 'aliroCoreDatabase' | |
| $tableName = '#__menu' | |
| $rowKey = 'id' | |
Definition at line 53 of file aliroMenuHandler.php.
| aliroMenuItem::load | ( | $ | oid = null |
) |
Reimplemented from aliroDBGeneralRow.
Definition at line 58 of file aliroMenuHandler.php.
References aliroRequest::trace().
00058 { 00059 trigger_error ('Should not ->load() a menu - aliroMenuHandler can provide the whole menu using getMenuByID($id)'); 00060 echo aliroRequest::trace(); 00061 }
| aliroMenuItem::getParams | ( | ) |
Definition at line 63 of file aliroMenuHandler.php.
References criticalInfo::getInstance(), and T_().
00063 { 00064 if ($this->params) { 00065 $params = new aliroParameters($this->params); 00066 } 00067 else { 00068 $info = criticalInfo::getInstance(); 00069 $xmlfile = $info->absolute_path.$this->xmlfile; 00070 $xmldata = file_get_contents($xmlfile); 00071 if (false == $xmldata) { 00072 trigger_error (T_('aliroMenuItem class could not find XML file ').$xmlfile); 00073 return ''; 00074 } 00075 $xmlparser = new aliroXMLParamsDefault; 00076 $params = $xmlparser->paramsFromString($xmldata); 00077 } 00078 return $params; 00079 }
| aliroMenuItem::linkComponentData | ( | $ | component | ) |
Definition at line 81 of file aliroMenuHandler.php.
References componentid(), and name.
00081 { 00082 $this->name = $component->name; 00083 $this->link = 'index.php?option='.$component->option; 00084 $this->type = 'component'; 00085 $this->componentid = $component->id; 00086 $this->component = $component->option; 00087 $this->xmlfile = $component->xmlfile; 00088 }
aliroMenuItem::$DBclass = 'aliroCoreDatabase' [protected] |
Definition at line 54 of file aliroMenuHandler.php.
aliroMenuItem::$tableName = '#__menu' [protected] |
Definition at line 55 of file aliroMenuHandler.php.
aliroMenuItem::$rowKey = 'id' [protected] |
Definition at line 56 of file aliroMenuHandler.php.
1.5.5