Ejemplo n.º 1
0
 function &getExpansion()
 {
     $item =& $this->getItem();
     $return['option'] = JRequest::getCmd('expand');
     $menutype = JRequest::getString('menutype');
     if ($return['option']) {
         require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_menus' . DS . 'classes' . DS . 'ilink.php';
         $handler = new iLink($return['option'], $item->id, $menutype);
         $return['html'] = $handler->getTree();
         return $return;
     } else {
         $return['html'] = null;
     }
     return $return;
 }
Ejemplo n.º 2
0
 function &getExpansion()
 {
     $item =& $this->getItem();
     $return['option'] = JRequest::getCmd('expand');
     $menutype = JRequest::getVar('menutype', '', '', 'menutype');
     if ($return['option']) {
         require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_menus' . DS . 'classes' . DS . 'ilink.php';
         $option = $return['option'];
         if ($option == 'articles') {
             $option = 'content';
         } else {
             if ($option == 'contacts') {
                 $option = 'contact';
             }
         }
         $handler = new iLink($option, $item->id, $menutype);
         $return['html'] = $handler->getTree();
         return $return;
     } else {
         $return['html'] = null;
     }
     return $return;
 }