예제 #1
0
파일: jt_persons.php 프로젝트: Lothurm/J3.x
 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');
 }
예제 #2
0
파일: source.php 프로젝트: Lothurm/J3.x
 function display()
 {
     $action = $this->input->get('action');
     if ($action == 'select') {
         $this->input->set('tmpl', 'component');
         $this->input->set('action', $action);
     }
     parent::display();
 }
예제 #3
0
 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();
 }
예제 #4
0
파일: personform.php 프로젝트: Lothurm/J3.x
 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();
 }
예제 #5
0
 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');
 }
예제 #6
0
파일: jt_themes.php 프로젝트: Lothurm/J3.x
 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();
 }