/** * Saves a bind in the database * * @return void */ public function saveObject() { $dao = new Tracker_FormElement_Field_List_Bind_StaticDao(); if ($dao->save($this->field->getId(), $this->is_rank_alpha)) { $value_dao = $this->getValueDao(); foreach ($this->getAllValues() as $v) { if ($id = $value_dao->create($this->field->getId(), $v->getLabel(), $v->getDescription(), 'end', $v->isHidden())) { $v->setId($id); } } } parent::saveObject(); }
/** * Saves a bind in the database * * @return void */ public function saveObject() { foreach ($this->values as $value) { if ($id = $this->getValueDao()->create($this->field->getId(), $value->getUgroupId(), $value->isHidden())) { $value->setId($id); } } parent::saveObject(); }
/** * Saves a bind in the database * * @return void */ public function saveObject() { $dao = new Tracker_FormElement_Field_List_Bind_UsersDao(); $dao->save($this->field->getId(), $this->getValueFunction()); parent::saveObject(); }