static public function fetchList( $params, $limits = null, $sorts = null, $mainTranslation = false, $locale = false )
    {
        $customConds = self::fetchCustomCondsSQL( $params, $mainTranslation, $locale );

        if ( is_array( $params ) )
        {
            $newParams = array();
            foreach ( $params as $key => $value )
            {
                if ( $key != 'keyword' )
                    $newParams[$key] = $value;
                else
                    $newParams['eztags_keyword.keyword'] = $value;
            }

            $params = $newParams;
        }

        if ( is_array( $sorts ) )
        {
            $newSorts = array();
            foreach ( $sorts as $key => $value )
            {
                if ( $key != 'keyword' )
                    $newSorts[$key] = $value;
                else
                    $newSorts['eztags_keyword.keyword'] = $value;
            }

            $sorts = $newSorts;
        }
        else if ( $sorts == null )
        {
            $sorts = array( 'eztags_keyword.keyword' => 'asc' );
        }

        $tagsList = parent::fetchObjectList( self::definition(), array(), $params,
                                                         $sorts, $limits, true, false,
                                                         array( 'DISTINCT eztags.*',
                                                                array( 'operation' => 'eztags_keyword.keyword',
                                                                       'name'      => 'keyword' ),
                                                                array( 'operation' => 'eztags_keyword.locale',
                                                                       'name'      => 'locale' ) ),
                                                         array( 'eztags_keyword' ), $customConds );
        return $tagsList;
    }
static public function fetchList( $params, $limits = null, $sorts = null, $mainTranslation = false, $locale = false )
    {
        $customConds = self::fetchCustomCondsSQL( $params, $mainTranslation, $locale );

        if ( is_array( $params ) )
        {
            $newParams = array();
            foreach ( $params as $key => $value )
            {
                if ( $key != 'keyword' )
                    $newParams[$key] = $value;
                else
                    $newParams['eztags_keyword.keyword'] = $value;
            }

            $params = $newParams;
        }

        if ( is_array( $sorts ) )
        {
            $newSorts = array();
            foreach ( $sorts as $key => $value )
            {
                if ( $key != 'keyword' )
                    $newSorts[$key] = $value;
                else
                    $newSorts['eztags_keyword.keyword'] = $value;
            }

            $sorts = $newSorts;
        }
        else if ( $sorts == null )
        {
            $sorts = array( 'eztags_keyword.keyword' => 'asc' );
        }

        $tagsList = parent::fetchObjectList( self::definition(), array(), $params,
                                                         $sorts, $limits, true, false,
                                                         array( 'DISTINCT eztags.*',
                                                                array( 'operation' => 'eztags_keyword.keyword',
                                                                       'name'      => 'keyword' ),
                                                                array( 'operation' => 'eztags_keyword.locale',
                                                                       'name'      => 'locale' ) ),
                                                         array( 'eztags_keyword' ), $customConds );
        return $tagsList;
    }
static public function fetchList ( $ params , $ limits = null , $ sorts = null , $ mainTranslation = false , $ locale = false ) { $ customConds = self :: fetchCustomCondsSQL ( $ params , $ mainTranslation , $ locale ) ; if ( is_array ( $ params ) ) { $ newParams = array ( ) ; foreach ( $ params as $ key => $ value ) { if ( $ key != 'keyword' ) $ newParams [ $ key ] = $ value ; else $ newParams [ 'eztags_keyword.keyword' ] = $ value ; } $ params = $ newParams ; } if ( is_array ( $ sorts ) ) { $ newSorts = array ( ) ; foreach ( $ sorts as $ key => $ value ) { if ( $ key != 'keyword' ) $ newSorts [ $ key ] = $ value ; else $ newSorts [ 'eztags_keyword.keyword' ] = $ value ; } $ sorts = $ newSorts ; } else if ( $ sorts == null ) { $ sorts = array ( 'eztags_keyword.keyword' => 'asc' ) ; } $ tagsList = parent :: fetchObjectList ( self :: definition ( ) , array ( ) , $ params , $ sorts , $ limits , true , false , array ( 'DISTINCT eztags.*' , array ( 'operation' => 'eztags_keyword.keyword' , 'name' => 'keyword' ) , array ( 'operation' => 'eztags_keyword.locale' , 'name' => 'locale' ) ) , array ( 'eztags_keyword' ) , $ customConds ) ; return $ tagsList ; }
Returns array of eZTagsObject objects for given params

@static

@param array $params
@param array $limits
@param array $sorts
@param bool $mainTranslation
@param mixed $locale

@return eZTagsObject[]
Returns array of eZTagsObject objects for given params