/** * Store the form's values to this object. * @param ALBUM_ENTRY $obj * @access private */ protected function _store_to_object($obj) { parent::_store_to_object($obj); $obj->date = $this->value_for('day'); }
/** * Store the form's values to this article. * @param DRAFTABLE_ENTRY $obj * @access private */ protected function _store_to_object($obj) { parent::_store_to_object($obj); if ($this->value_for('draft')) { $obj->state = Draft; } }
/** * Store the form's values for this job. * @param PROJECT_ENTRY $obj * @access private */ protected function _store_to_object($obj) { $main_branch_id = $this->value_for('main_branch_id'); $obj->kind = $this->value_for('kind'); $obj->component_id = $this->value_for('component_id'); $obj->extra_description = $this->value_for('extra_description'); foreach ($this->branches as $branch) { if ($this->value_for("branch_{$branch->id}_enabled")) { $branch_info = $obj->new_branch_info($branch); $this->_store_to_branch_info($branch_info); $obj->add_branch_info($branch_info); if ($main_branch_id == $branch->id) { $obj->set_main_branch_info($branch_info); } } } parent::_store_to_object($obj); }