80 if (!isset($this->fieldMap[$fieldName]))
83 $fieldName = $this->fieldMap[$fieldName];
84 if (!isset($this->fields[$fieldName]))
87 $fieldValue = $this->fields[$fieldName];
88 if (is_array($fieldValue))
91 foreach($fieldValue as $key => $value)
94 $result[$key] = $value->getValue();
96 $result[$key] = $value;
105 return $fieldValue->getValue();
107 return $this->fields[$fieldName];
136 protected function addField($fieldName, $internalName, $value)
138 if (!isset($this->fields[$internalName]))
139 $this->fields[$internalName] = $value;
140 $this->fieldMap[mb_strtolower($fieldName)] = $internalName;