Ejemplo n.º 1
0
 /**
  * Return the I2CE_FormField for the given field name.
  * @param string $field the field name or a form name:field name
  * @return I2CE_FormField
  */
 public function getField($field)
 {
     if (strpos($field, ':') !== false) {
         list($name, $field) = explode(':', $field, 2);
         if ($name !== $this->name) {
             I2CE::raiseError("Using wrong reference to container name  {$name} != {$this->name}");
             return null;
         }
     }
     if ($field == 'parent') {
         return $this->parentField;
     } elseif ($field == 'last_modified') {
         return $this->lastModifiedField;
     } elseif ($field == 'created') {
         return $this->createdField;
     } else {
         return parent::getField($field);
     }
 }