/**
  * Store the form's values to this folder.
  * @param FOLDER $obj
  * @access private
  */
 protected function _store_to_object($obj)
 {
     $obj->organizational = $this->value_for('is_organizational');
     $obj->summary = $this->value_as_text('summary');
     $obj->icon_url = $this->value_as_text('icon_url');
     parent::_store_to_object($obj);
 }
 /**
  * Store the form's values for this change.
  * @param CHANGE $obj
  * @access private
  */
 protected function _store_to_object($obj)
 {
     parent::_store_to_object($obj);
     $obj->parent_release_id = $this->value_for('parent_release_id');
     switch ($this->value_for('state')) {
         case Hidden:
             $obj->hide(Defer_database_update);
             break;
         case Locked:
             $obj->lock(Defer_database_update);
             break;
         case Visible:
             $obj->show(Defer_database_update);
             break;
     }
 }
 /**
  * Store the form's values to this object.
  * @param ATTACHMENT $obj
  * @access private
  */
 protected function _store_to_object($obj)
 {
     parent::_store_to_object($obj);
     $file = $this->upload_file_for('file_name');
     if (isset($file)) {
         $obj->set_full_file_name($file->current_name());
         $obj->original_file_name = $file->name;
         $obj->mime_type = $file->mime_type;
         $obj->size = $file->size;
         $obj->file_name = $file->current_name();
     }
 }
 /**
  * Store the form's values for this change.
  * @param RELEASE $obj
  * @access private
  */
 protected function _store_to_object($obj)
 {
     $obj->summary = $this->value_for('summary');
     /** @var DATE_TIME $time_scheduled */
     $time_scheduled = $this->value_for('time_scheduled');
     $obj->set_time_scheduled($time_scheduled);
     /** @var DATE_TIME $time_testing_scheduled */
     $time_testing_scheduled = $this->value_for('time_testing_scheduled');
     $obj->set_time_testing_scheduled($time_testing_scheduled);
     $obj->branch_id = $this->value_for('branch_id');
     parent::_store_to_object($obj);
     switch ($this->value_for('state')) {
         case Hidden:
             $obj->hide(Defer_database_update);
             break;
         case Planned:
             $obj->plan(Defer_database_update);
             break;
         case Testing:
             $obj->test(Defer_database_update);
             break;
         case Shipped:
             $obj->ship(Defer_database_update);
             break;
         case Locked:
             $obj->lock(Defer_database_update);
             break;
     }
 }
 /**
  * Store the form's values to this object.
  * @param STORABLE $obj
  * @access private
  * @abstract
  */
 protected function _store_to_object($obj)
 {
     parent::_store_to_object($obj);
     $obj->icon_url = $this->value_for('icon_url');
 }