public function __construct() { // Do not load the toolbar automatically $this->loadToolbar = false; // Call the parent constructor return parent::__construct(); }
public function __construct() { // Template-paths $this->templatePaths[] = dirname(__FILE__) . '/form'; // Call the parent constructor return parent::__construct(); }
public function __construct() { // Template-paths $this->templatePaths[] = dirname(__FILE__) . '/list'; // Do not load the toolbar automatically $this->loadToolbar = false; // Call the parent constructor return parent::__construct(); }
public function __construct() { $this->loadToolbar = false; // Call the parent constructor parent::__construct(); // Initialize the toolbar if (file_exists(JPATH_COMPONENT . '/config.xml')) { JToolBarHelper::preferences($this->_option, 600, 800); } }
public function __construct() { $this->loadToolbar = false; // Call the parent constructor parent::__construct(); // Load bootstrap YireoHelper::bootstrap(); // Initialize the toolbar if (file_exists(JPATH_COMPONENT . '/config.xml')) { if (JFactory::getUser()->authorise('core.admin')) { JToolBarHelper::preferences($this->_option, 600, 800); } } // Add the checks $this->runChecks(); }
public function __construct() { // Add the Yireo form fields jimport('joomla.form.form'); JForm::addFieldPath(JPATH_LIBRARIES . '/yireo/form/fields'); JForm::addFieldPath(JPATH_COMPONENT_ADMINISTRATOR . '/lib/form/fields'); JForm::addFieldPath(JPATH_COMPONENT_ADMINISTRATOR . '/fields'); // Call the parent constructor $rt = parent::__construct(); // Detect the editor field if (empty($this->_editor_field) && !empty($this->_table)) { if ($this->_table->hasField('body')) { $this->_editor_field = 'body'; } if ($this->_table->hasField('description')) { $this->_editor_field = 'description'; } if ($this->_table->hasField('text')) { $this->_editor_field = 'text'; } } return $rt; }