function __construct() { // check token first JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); // create an input object $this->input = JFactory::getApplication()->input; //Get View if ($this->input->get('view') == '') { $this->input->set('view', 'jt_persons'); } parent::__construct(); $this->registerTask('save', 'save'); // three tasks for publishing $this->registerTask('unpublish', 'publish'); $this->registerTask('publishAll', 'publishAll'); $this->registerTask('unpublishAll', 'unpublishAll'); // three tasks for living $this->registerTask('updateLiving', 'living'); $this->registerTask('livingAll', 'livingAll'); $this->registerTask('notLivingAll', 'notLivingAll'); // three tasks for page switch $this->registerTask('updatePage', 'page'); $this->registerTask('pageAll', 'pageAll'); $this->registerTask('noPageAll', 'noPageAll'); // three tasks for map switch $this->registerTask('mapStatAll', 'mapStatAll'); $this->registerTask('mapDynAll', 'mapDynAll'); $this->registerTask('noMapAll', 'noMapAll'); }
function display() { $action = $this->input->get('action'); if ($action == 'select') { $this->input->set('tmpl', 'component'); $this->input->set('action', $action); } parent::display(); }
public function edit() { $cids = $this->input->get('cid', null, 'array'); $cid = (int) $cids[0]; $this->input->set('id', $cid); $this->input->set('view', 'jt_location'); $this->input->set('layout', 'form'); parent::display(); }
function __construct() { // first check token JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); // create an input object $this->input = JFactory::getApplication()->input; //Get View if ($this->input->get('view') == '') { $this->input->set('view', 'personform'); } parent::__construct(); }
function __construct() { // first check token JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); // create an input object $this->input = JFactory::getApplication()->input; //Get View if ($this->input->get('view') == '') { $this->input->set('view', 'jt_settings'); } parent::__construct(); $this->registerTask('unpublish', 'publish'); }
public function edit_css() { $cids = $this->input->get('cid', array(), 'array'); $cid = (int) $cids[0]; $this->input->set('id', $cid); $this->input->set('view', 'jt_theme'); $this->input->set('layout', 'editcss'); parent::display(); }