/** * Custom Constructor */ function __construct($default = array()) { parent::__construct($default); $this->registerTask('apply', 'save'); $this->registerTask('edit', 'display'); $this->registerTask('add', 'display'); $this->registerTask('remove', 'remove'); }
/** * Custom Constructor */ function __construct($default = array()) { parent::__construct($default); $this->registerTask('apply', 'save'); $this->registerTask('unpublish', 'publish'); $this->registerTask('edit', 'display'); $this->registerTask('add', 'display'); $this->registerTask('orderup', 'order'); $this->registerTask('orderdown', 'order'); }
function __construct($default = array()) { parent::__construct($default); $this->canDo = JCKHelper::getActions(); $this->registerTask('apply', 'save'); $this->registerTask('edit', 'display'); $this->registerTask('add', 'display'); $this->registerTask('trash', 'remove'); // drop-down menu $this->registerTask('remove', 'remove'); }
public function __construct($config = array()) { if (defined('JLEGACY_CMS')) { $user =& JFactory::getUser(); if (!$user->authorize('com_installer', 'installer')) { echo JError::raiseError(404, JText::_('ALERTNOTAUTH')); exit; } } else { $user = JFactory::getUser(); if (!$user->authorise('core.manage', 'com_installer')) { echo JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); exit; } } parent::__construct($config); }
public function __construct($config = array()) { if (defined('JLEGACY_CMS')) { $user =& JFactory::getUser(); if (!$user->authorize('com_installer', 'installer')) { echo JError::raiseError(404, JText::_('ALERTNOTAUTH')); exit; } } else { $user = JFactory::getUser(); if (!$user->authorise('core.manage', 'com_installer')) { echo JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); exit; } } //load JCK editor's language file $lang = JFactory::getLanguage(); $lang->load('plg_editors_jckeditor', JPATH_ADMINISTRATOR); parent::__construct($config); }
function __construct($default = array()) { parent::__construct($default); $this->canDo = JCKHelper::getActions(); }