예제 #1
0
 /**
  * Edit an team
  *
  * @param   string  $key     key
  * @param   string  $urlVar  urlvar
  *
  * @return bool
  */
 public function edit($key = null, $urlVar = null)
 {
     if (!JFactory::getUser()->get('id')) {
         $this->setRedirect(JURI::base(), JText::_('COM_TRACKS_Please_login_to_be_able_to_edit'), 'error');
         $this->redirect();
     }
     return parent::edit($key, $urlVar);
 }
예제 #2
0
 /**
  * Gets the URL arguments to append to an item redirect.
  *
  * @param   integer  $recordId  The primary key id for the item.
  * @param   string   $urlVar    The name of the URL variable for the id.
  *
  * @return  string  The arguments to append to the redirect URL.
  */
 protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
 {
     $append = parent::getRedirectToItemAppend($recordId, $urlVar);
     if (!($projectround_id = $this->input->getInt('projectround_id'))) {
         $fromForm = $this->input->get('jform', null, 'array');
         $projectround_id = $fromForm['projectround_id'];
     }
     return $append . '&projectround_id=' . $projectround_id;
 }
예제 #3
0
 /**
  * Gets the URL arguments to append to an item redirect.
  *
  * @param   integer  $recordId  The primary key id for the item.
  * @param   string   $urlVar    The name of the URL variable for the id.
  *
  * @return  string  The arguments to append to the redirect URL.
  */
 protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
 {
     $append = parent::getRedirectToItemAppend($recordId, $urlVar);
     $data = $this->input->get('jform', array(), 'array');
     if (!empty($data['payment_name'])) {
         $append .= '&payment_name=' . $data['payment_name'];
     }
     return $append;
 }
예제 #4
0
 public function save($key = null, $urlVar = null)
 {
     $task = $this->getTask();
     switch ($task) {
         case 'save':
             $this->view_list = 'countries';
             break;
     }
     parent::save($key, $urlVar);
 }
예제 #5
0
 /**
  * Public constructor of the Controller class
  *
  * @param   array  $config  Optional configuration parameters
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('assign', 'assign');
 }
예제 #6
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }
예제 #7
0
파일: config.php 프로젝트: 810/redCORE
 /**
  * Gets the URL arguments to append to an item redirect.
  *
  * @param   integer  $recordId  The primary key id for the item.
  * @param   string   $urlVar    The name of the URL variable for the id.
  *
  * @return  string  The arguments to append to the redirect URL.
  */
 protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
 {
     $append = parent::getRedirectToItemAppend($recordId, $urlVar);
     $component = $this->input->get('component');
     $tab = $this->input->get('tab');
     if ($component) {
         $append .= '&component=' . $component;
     }
     if ($tab) {
         $append .= '&tab=' . $tab;
     }
     return $append;
 }
예제 #8
0
 /**
  * Gets the URL arguments to append to a list redirect.
  *
  * @return  string  The arguments to append to the redirect URL.
  */
 protected function getRedirectToListAppend()
 {
     $append = parent::getRedirectToListAppend();
     $append .= $this->getCommonRedirectAppend($append);
     return $append;
 }