public function getData($field_id = null, $asObject = false)
    {
        $fieldData = isset($this->_data[$field_id])
            ? $this->_data[$field_id]
            : array();

        if (!$field_id) {
            return $this->_data;
        }

        return ($asObject ? (object)$fieldData : $fieldData);
    }
public function getData($field_id = null, $asObject = false)
    {
        $fieldData = isset($this->_data[$field_id])
            ? $this->_data[$field_id]
            : array();

        if (!$field_id) {
            return $this->_data;
        }

        return ($asObject ? (object)$fieldData : $fieldData);
    }
public function getData ( $ field_id = null , $ asObject = false ) { $ fieldData = isset ( $ this -> _data [ $ field_id ] ) ? $ this -> _data [ $ field_id ] : array ( ) ; if ( ! $ field_id ) { return $ this -> _data ; } return ( $ asObject ? ( object ) $ fieldData : $ fieldData ) ; }
Accessor function to return data from this Entry for a particular
field. Optional parameter to return this data as an object instead
of an array. If a Field is not provided, an associative array of all data
assigned to this Entry will be returned.

@param integer $field_id
The ID of the Field whose data you want
@param boolean $asObject
If true, the data will be returned as an object instead of an
array. Defaults to false. Note that if a `$field_id` is not provided
the result will always be an array.
@return array|object
Depending on the value of `$asObject`, return the field's data
as either an array or an object. If no data exists, null will be
returned.
Accessor function to return data from this Entry for a particular field . Optional parameter to return this data as an object instead of an array . If a Field is not provided an associative array of all data assigned to this Entry will be returned .