kernel/classes/ezpersistentobject.php
public static function fetchObject( $def, $field_filters, $conds, $asObject = true, $grouping = null, $custom_fields = null )
    {
        $rows = eZPersistentObject::fetchObjectList( $def, $field_filters, $conds,
                                                      array(), null, $asObject,
                                                      $grouping, $custom_fields );
        if ( $rows )
            return $rows[0];
        return null;
    }
public static function fetchObject( $def, $field_filters, $conds, $asObject = true, $grouping = null, $custom_fields = null )
    {
        $rows = eZPersistentObject::fetchObjectList( $def, $field_filters, $conds,
                                                      array(), null, $asObject,
                                                      $grouping, $custom_fields );
        if ( $rows )
            return $rows[0];
        return null;
    }
public static function fetchObject ( $ def , $ field_filters , $ conds , $ asObject = true , $ grouping = null , $ custom_fields = null ) { $ rows = eZPersistentObject :: fetchObjectList ( $ def , $ field_filters , $ conds , array ( ) , null , $ asObject , $ grouping , $ custom_fields ) ; if ( $ rows ) return $ rows [ 0 ] ; return null ; }
Fetches and returns an object based on the given parameters and returns
is either as an object or as an array

See {@link eZPersistentObject::fetchObjectList()} for a full description
of the input parameters.

@param array $def A definition array of all fields, table name and sorting (see {@link eZPersistentObject::definition()} for more info)
@param array $field_filters If defined determines the fields which are extracted, if not all fields are fetched
@param array $conds An array of conditions which determines which rows are fetched
@param bool $asObject If true the returned item is an object otherwise a db row (array).
@param array|null $grouping An array of elements to group by
@param array $custom_fields|null An array of extra fields to fetch, each field may be a SQL operation
@return eZPersistentObject|array|null
Fetches and returns an object based on the given parameters and returns is either as an object or as an array