Exemplo n.º 1
0
 function display($tpl = null)
 {
     $languages = OSMembershipHelper::getLanguages();
     $item = $this->get('Data');
     $this->item = $item;
     $this->languages = $languages;
     parent::display($tpl);
 }
Exemplo n.º 2
0
 function display($tpl = null)
 {
     $db = JFactory::getDbo();
     $item = $this->get('Data');
     $languages = OSMembershipHelper::getLanguages();
     $lists = array();
     if (property_exists($item, 'published')) {
         $lists['published'] = JHtml::_('select.booleanlist', 'published', ' class="inputbox" ', $item->published);
     }
     if (property_exists($item, 'access')) {
         $lists['access'] = JHtml::_('access.level', 'access', $item->access, 'class="inputbox"', false);
     }
     $this->_buildListArray($lists, $item);
     $this->item = $item;
     $this->lists = $lists;
     $this->languages = $languages;
     $this->_buildToolbar();
     parent::display($tpl);
 }