public function Save($pa_options = null) { $vn_rc = parent::Save($pa_options); $va_response = $this->getView()->getVar('response'); if (is_array($va_response) && isset($va_response['id']) && $va_response['id'] > 0) { $t_set = Datamodel::load()->getInstance('ca_sets', true); $t_set->getDb()->query('UPDATE ca_sets SET user_id=? WHERE set_id=?', $this->getRequest()->getUserID(), $va_response['id']); } return $vn_rc; }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); }
protected function _initView($pa_options = null) { list($t_subject, $t_ui) = parent::_initView($pa_options); $t_subject->loadProperties($pa_options['forceSubjectValues']['type_code']); return array($t_subject, $t_ui); }