Esempio n. 1
0
 function _actionSave(KCommandContext $context)
 {
     $this->uploadFile($context);
     return parent::_actionSave($context);
 }
Esempio n. 2
0
 /**
  * Generic Save & New action
  *
  * @param	mixed 	Either a scalar, an associative array, an object
  * 					or a KDatabaseRow
  * @return KDatabaseRow 	A row object containing the saved data
  */
 protected function _actionSavenew(KCommandContext $context)
 {
     $result = parent::_actionSave($context);
     $identifier = $this->getIdentifier();
     //redirect to this view again
     $this->_redirect = 'index.php?option=' . $identifier->type . '_' . $identifier->package . '&view=' . $this->_identifier->name;
     return $result;
 }