classes/ezfindelevateconfiguration.php
public static function fetchConfigurationForObject( $objectID,
                                                        $groupByLanguage = true,
                                                        $languageCode = null,
                                                        $limit = null,
                                                        $countOnly = false,
                                                        $searchQuery = null )
    {
        if ( ! is_numeric( $objectID ) )
            return null;

        $fieldFilters = $custom = null;
        $asObject = true;
        $results = array();
        $sortClause = $groupByLanguage ? array( 'language_code' => 'asc' ) : null;

        $conds = array( 'contentobject_id' => $objectID );
        if ( $languageCode and $languageCode !== '' )
            $conds['language_code'] = array( array( $languageCode, self::WILDCARD ) );

        if ( $searchQuery )
        {
            if ( !is_array( $searchQuery ) and $searchQuery != '' )
            {
                $conds['search_query'] = $searchQuery;
            }
            elseif ( array_key_exists( 'searchQuery', $searchQuery ) and $searchQuery['searchQuery'] != '' )
            {
                $conds['search_query'] = $searchQuery['fuzzy'] === true ? array( 'like', "%{$searchQuery['searchQuery']}%" ) : $searchQuery['searchQuery'];
            }
        }

        if ( $countOnly )
        {
            return parent::count( self::definition(), $conds );
        }
        else
        {
            $rows = parent::fetchObjectList( self::definition(), $fieldFilters, $conds, $sortClause, $limit, $asObject, false, $custom );
            foreach ( $rows as $row )
            {
                if ( $groupByLanguage )
                {
                    $results[$row->attribute( 'language_code' )][] = $row;
                }
                else
                {
                    $results[] = $row;
                }
            }
            return $results;
        }
    }
public static function fetchConfigurationForObject( $objectID,
                                                        $groupByLanguage = true,
                                                        $languageCode = null,
                                                        $limit = null,
                                                        $countOnly = false,
                                                        $searchQuery = null )
    {
        if ( ! is_numeric( $objectID ) )
            return null;

        $fieldFilters = $custom = null;
        $asObject = true;
        $results = array();
        $sortClause = $groupByLanguage ? array( 'language_code' => 'asc' ) : null;

        $conds = array( 'contentobject_id' => $objectID );
        if ( $languageCode and $languageCode !== '' )
            $conds['language_code'] = array( array( $languageCode, self::WILDCARD ) );

        if ( $searchQuery )
        {
            if ( !is_array( $searchQuery ) and $searchQuery != '' )
            {
                $conds['search_query'] = $searchQuery;
            }
            elseif ( array_key_exists( 'searchQuery', $searchQuery ) and $searchQuery['searchQuery'] != '' )
            {
                $conds['search_query'] = $searchQuery['fuzzy'] === true ? array( 'like', "%{$searchQuery['searchQuery']}%" ) : $searchQuery['searchQuery'];
            }
        }

        if ( $countOnly )
        {
            return parent::count( self::definition(), $conds );
        }
        else
        {
            $rows = parent::fetchObjectList( self::definition(), $fieldFilters, $conds, $sortClause, $limit, $asObject, false, $custom );
            foreach ( $rows as $row )
            {
                if ( $groupByLanguage )
                {
                    $results[$row->attribute( 'language_code' )][] = $row;
                }
                else
                {
                    $results[] = $row;
                }
            }
            return $results;
        }
    }
public static function fetchConfigurationForObject ( $ objectID , $ groupByLanguage = true , $ languageCode = null , $ limit = null , $ countOnly = false , $ searchQuery = null ) { if ( ! is_numeric ( $ objectID ) ) return null ; $ fieldFilters = $ custom = null ; $ asObject = true ; $ results = array ( ) ; $ sortClause = $ groupByLanguage ? array ( 'language_code' => 'asc' ) : null ; $ conds = array ( 'contentobject_id' => $ objectID ) ; if ( $ languageCode and $ languageCode !== '' ) $ conds [ 'language_code' ] = array ( array ( $ languageCode , self :: WILDCARD ) ) ; if ( $ searchQuery ) { if ( ! is_array ( $ searchQuery ) and $ searchQuery != '' ) { $ conds [ 'search_query' ] = $ searchQuery ; } elseif ( array_key_exists ( 'searchQuery' , $ searchQuery ) and $ searchQuery [ 'searchQuery' ] != '' ) { $ conds [ 'search_query' ] = $ searchQuery [ 'fuzzy' ] === true ? array ( 'like' , "%{$searchQuery['searchQuery']}%" ) : $ searchQuery [ 'searchQuery' ] ; } } if ( $ countOnly ) { return parent :: count ( self :: definition ( ) , $ conds ) ; } else { $ rows = parent :: fetchObjectList ( self :: definition ( ) , $ fieldFilters , $ conds , $ sortClause , $ limit , $ asObject , false , $ custom ) ; foreach ( $ rows as $ row ) { if ( $ groupByLanguage ) { $ results [ $ row -> attribute ( 'language_code' ) ] [ ] = $ row ; } else { $ results [ ] = $ row ; } } return $ results ; } }
Retrieves the elevate configuration for a given content object, possibly per language.

@param int $objectID ID of the content object to fetch elevate configuration for
@param boolean $groupByLanguage Group results per language. If true, the return value will look like the following :
<code>
array( 'eng-GB' => array( ( eZFindElevateConfiguration ) $conf1,
( eZFindElevateConfiguration ) $conf2 ),
'fre-FR' => array( ( eZFindElevateConfiguration ) $conf3 ),
'*'      => array( ( eZFindElevateConfiguration ) $conf4 ),
( eZFindElevateConfiguration ) $conf5
)
</code>

@param string $languageCode if filtering on language-code is required
@param array $limit Associative array containing the 'offset' and 'limit' keys, with integers as values, framing the result set. Example :
<code>
array( 'offset' => 0,
'limit'  => 10 )
</code>

@param boolean $countOnly If only the count of matching results is needed
@param mixed $searchQuery Can be a string containing the search_query to filter on.
Can also be an array looking like the following, supporting fuzzy search optionnally.
<code>
array( 'searchQuery' => ( string )  'foo bar',
'fuzzy'       => ( boolean ) true      )
</code>

@return mixed An array containing the eZFindElevateConfiguration objects, optionnally sorted by language code, null if error.
Retrieves the elevate configuration for a given content object possibly per language .