src/View/ArrayData.php
public function getField($field)
    {
        $value = $this->array[$field];
        if (is_object($value) && !$value instanceof ViewableData) {
            return new ArrayData($value);
        } elseif (ArrayLib::is_associative($value)) {
            return new ArrayData($value);
        } else {
            return $value;
        }
    }
public function getField($field)
    {
        $value = $this->array[$field];
        if (is_object($value) && !$value instanceof ViewableData) {
            return new ArrayData($value);
        } elseif (ArrayLib::is_associative($value)) {
            return new ArrayData($value);
        } else {
            return $value;
        }
    }
public function getField ( $ field ) { $ value = $ this -> array [ $ field ] ; if ( is_object ( $ value ) && ! $ value instanceof ViewableData ) { return new ArrayData ( $ value ) ; } elseif ( ArrayLib :: is_associative ( $ value ) ) { return new ArrayData ( $ value ) ; } else { return $ value ; } }
Gets a field from this object.


If the value is an object but not an instance of
ViewableData, it will be converted recursively to an
ArrayData.

If the value is an associative array, it will likewise be
converted recursively to an ArrayData.

@param string $field
@return mixed
Gets a field from this object .