예제 #1
0
파일: Abstract.php 프로젝트: alexukua/opus4
 /**
  * Add an field to the model. If a field with the same name has already been added,
  * it will be replaced by the given field.
  *
  * @param Opus_Model_Field $field Field instance that gets appended to the models field collection.
  * @return Opus_Model_Abstract Provide fluent interface.
  */
 public function addField(Opus_Model_Field $field)
 {
     $this->_fields[$field->getName()] = $field;
     $field->setOwningModelClass(get_class($this));
     return $this;
 }