예제 #1
0
 /**
  * Method to edit an element.
  *
  * @access	public
  * @return	void
  */
 public function edit()
 {
     CkJSession::checkToken() or CkJSession::checkToken('get') or jexit(JText::_('JINVALID_TOKEN'));
     $this->_result = $result = parent::edit();
     $model = $this->getModel();
     //Define the redirections
     switch ($this->getLayout() . '.' . $this->getTask()) {
         case 'changelogs.edit':
             $this->applyRedirection($result, array('stay', 'com_rtiprint.changelog.changelog'), array());
             break;
         case 'changelogs.edit':
             $this->applyRedirection($result, array('stay', 'com_rtiprint.changelog.changelog'), array());
             break;
         case 'changelogs.edit':
             $this->applyRedirection($result, array('stay', 'com_rtiprint.changelog.changelog'), array());
             break;
         case 'changelogs.edit':
             $this->applyRedirection($result, array('stay', 'com_rtiprint.changelog.changelog'), array());
             break;
         default:
             $this->applyRedirection($result, array('stay', 'com_rtiprint.changelog.rochangelog'));
             break;
     }
 }