Exemplo n.º 1
0
 /**
  * @param mixed $handler_id The ID of the handler.
  * @param Array $args The argument list.
  * @param Array &$data The local request data.
  * @return boolean Indicating success.
  */
 function _handler_create($handler_id, $args, &$data)
 {
     if ($_MIDCOM->auth->user || $this->_config->get('allow_anonymous')) {
         if (!$_MIDCOM->auth->request_sudo('fi.opengov.datacatalog')) {
             return false;
         }
     }
     return parent::_handler_create($handler_id, $args, &$data);
 }
Exemplo n.º 2
0
 /**
  * Generates an object creation view.
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array $args The argument list.
  * @param array &$data The local request data.
  * @return boolean Indicating success.
  */
 function _handler_create($handler_id, $args, &$data)
 {
     if ($handler_id == 'jobhistory_jobtitle_create_under') {
         $jobgroup = new fi_kilonkipinat_account_jobhistory_jobgroup_dba($args[1]);
         $this->_defaults['jobgroup'] = $jobgroup->id;
     }
     return parent::_handler_create($handler_id, $args, $data);
 }
Exemplo n.º 3
0
 /**
  * @param mixed $handler_id The ID of the handler.
  * @param Array $args The argument list.
  * @param Array &$data The local request data.
  * @return boolean Indicating success.
  */
 function _handler_create($handler_id, $args, &$data)
 {
     $this->_mode = 'create';
     return parent::_handler_create($handler_id, $args, &$data);
 }
Exemplo n.º 4
0
 /**
  * Generates an object creation view.
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array $args The argument list.
  * @param array &$data The local request data.
  * @return boolean Indicating success.
  */
 function _handler_create($handler_id, $args, &$data)
 {
     $status = parent::_handler_create($handler_id, $args, $data);
     return $status;
 }
Exemplo n.º 5
0
 /**
  * Generates an object creation view.
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array $args The argument list.
  * @param array &$data The local request data.
  * @return boolean Indicating success.
  */
 function _handler_create($handler_id, $args, &$data)
 {
     $_MIDCOM->auth->require_valid_user();
     return parent::_handler_create($handler_id, $args, $data);
 }
Exemplo n.º 6
0
 /**
  * Generates an object creation view.
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array $args The argument list.
  * @param array &$data The local request data.
  * @return boolean Indicating success.
  */
 function _handler_create($handler_id, $args, &$data)
 {
     if ($handler_id == 'jobhistory_job_create_under') {
         $jobtitle = new fi_kilonkipinat_account_jobhistory_jobtitle_dba($args[1]);
         $this->_defaults['jobtitle'] = $jobtitle->id;
         $this->_request_data['jobtitle'] = $jobtitle;
     }
     if ($handler_id == 'jobhistory_job_create_for') {
         $person = new fi_kilonkipinat_account_person_dba($args[1]);
         $this->_defaults['person'] = $person->id;
         $this->_request_data['person'] = $person;
     }
     return parent::_handler_create($handler_id, $args, $data);
 }
Exemplo n.º 7
0
 /**
  * Generates an object creation view.
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array $args The argument list.
  * @param array &$data The local request data.
  * @return boolean Indicating success.
  */
 function _handler_create($handler_id, $args, &$data)
 {
     if (!isset($this->_defaults)) {
         $this->_defaults = array();
     }
     if ($args[0] == 'retki') {
         $this->_defaults['allday'] = true;
     } else {
         $this->_defaults['hideendtime'] = true;
     }
     $status = parent::_handler_create($handler_id, $args, $data);
     $this->_request_data['event_desc'] = $this->_schemadb[$args[0]]->description;
     return $status;
 }