public function save()
 {
     if ($_POST['metaFields:disabled_input'] === 'NO') {
         // Make sure checkboxes have a value as unchecked values don't appear in $_POST
         if (!array_key_exists($this->model->object_name . ':for_verification_check', $_POST)) {
             $_POST[$this->model->object_name . ':for_verification_check'] = '0';
         }
     }
     parent::save();
 }
Ejemplo n.º 2
0
 /** 
  * Override saave to store the applies_to_location field. 
  */
 public function save()
 {
     if ($_POST['metaFields:disabled_input'] == 'NO') {
         // Make sure checkboxes have a value.
         // @todo: If we use Indicia client helper controls for the attribute edit page, this becomes unnecessary
         if (!array_key_exists($this->model->object_name . ':applies_to_location', $_POST)) {
             $_POST[$this->model->object_name . ':applies_to_location'] = '0';
         }
     }
     parent::save();
 }
Ejemplo n.º 3
0
 /**
  * Returns some addition information required by the edit view, which is not associated with
  * a particular record.
  */
 protected function prepareOtherViewData($values)
 {
     return array_merge((array) parent::prepareOtherViewData($values), array('publicFieldName' => 'Public (available for all survey datasets on this warehouse)'));
 }
 public function __construct()
 {
     $this->prefix = 'identifiers_subject_observation';
     parent::__construct();
 }
 public function __construct()
 {
     $this->prefix = 'occurrence';
     parent::__construct();
 }
 public function __construct()
 {
     $this->prefix = 'location';
     parent::__construct();
 }