public function getField($fieldName, $returnFirstValueOnly = true) {
        if(!empty($this->fields[$fieldName]) && count($this->fields[$fieldName] > 0)) {
            return ($returnFirstValueOnly) ? $this->fields[$fieldName][0] : $this->fields[$fieldName];
        }
    }
public function getField($fieldName, $returnFirstValueOnly = true) {
        if(!empty($this->fields[$fieldName]) && count($this->fields[$fieldName] > 0)) {
            return ($returnFirstValueOnly) ? $this->fields[$fieldName][0] : $this->fields[$fieldName];
        }
    }
public function getField ( $ fieldName , $ returnFirstValueOnly = true ) { if ( ! empty ( $ this -> fields [ $ fieldName ] ) && count ( $ this -> fields [ $ fieldName ] > 0 ) ) { return ( $ returnFirstValueOnly ) ? $ this -> fields [ $ fieldName ] [ 0 ] : $ this -> fields [ $ fieldName ] ; } }
Return value of a field
@param string $fieldName
@param boolean $returnFirstValueOnly Return every values (useful for a multivalued field), or only
first value (useful for most of the cases when there is only one value).
Default value: true.
Return value of a field