Пример #1
0
 /**
  * Add field
  * @param epFieldMap $field
  * @return void
  * @access public
  */
 public function addField(epFieldMap $field)
 {
     // check if field is non primitive
     if (!$field->isPrimitive()) {
         // increase the count of non primitive fields
         $this->num_non_primitive++;
         // check if the field is composed_of
         if ($field->isComposedOf()) {
             $this->num_composed_of++;
         }
     }
     // set class map to field map for easy retrieval
     $field->setClassMap($this);
     $this->fields[$field->getName()] =& $field;
 }