protected function onBrowse($tpl = null)
 {
     $result = parent::onBrowse($tpl);
     if ($result || is_null($result)) {
         /** @var AkeebasubsModelCpanels $model */
         $model = $this->getModel();
         $this->hasGeoIPPlugin = $model->hasGeoIPPlugin();
         $this->geoIPPluginNeedsUpdate = $model->GeoIPDBNeedsUpdate();
     }
     return $result;
 }
 protected function onBrowse($tpl = null)
 {
     if (interface_exists('JModel')) {
         $model = JModelLegacy::getInstance('Masterpw', 'AdmintoolsModel');
     } else {
         $model = JModel::getInstance('Masterpw', 'AdmintoolsModel');
     }
     $masterpw = $model->getMasterPassword();
     $this->masterpw = $masterpw;
     return parent::onBrowse($tpl);
 }
 /**
  * The default layout, shows a list of profiles
  *
  */
 function onBrowse($tpl = null)
 {
     // Get reference to profiles model
     $model = $this->getModel();
     // Get profile ID
     $profileid = AEPlatform::getInstance()->get_active_profile();
     $this->profileid = $profileid;
     // Get profile name
     $model->setId($profileid);
     $profile_data = $model->getProfile();
     $this->profilename = $profile_data->description;
     return parent::onBrowse($tpl);
 }
Exemple #4
0
 /**
  * The default layout, shows a list of profiles
  *
  */
 function onBrowse($tpl = null)
 {
     // Get reference to profiles model
     $model = $this->getModel();
     // Get profile ID
     $profileid = Platform::getInstance()->get_active_profile();
     $this->profileid = $profileid;
     // Get profile name
     $model->setId($profileid);
     $profile_data = $model->getProfile();
     $this->profilename = $this->escape($profile_data->description);
     // Get Sort By fields
     $this->sortFields = array('id' => JText::_('JGRID_HEADING_ID'), 'description' => JText::_('PROFILE_COLLABEL_DESCRIPTION'));
     return parent::onBrowse($tpl);
 }
 protected function onBrowse($tpl = null)
 {
     $model = $this->getModel();
     $this->invoicetemplates = $model->getInvoiceTemplateNames();
     parent::onBrowse($tpl);
 }