static public function fetchListCount( $params, $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;
        }

        $tagsList = parent::fetchObjectList( self::definition(), array(), $params,
                                                         array(), null, false, false,
                                                         array( array( 'operation' => 'COUNT( * )',
                                                                       'name'      => 'row_count' ) ),
                                                         array( 'eztags_keyword' ), $customConds );

        return $tagsList[0]['row_count'];
    }
static public function fetchListCount( $params, $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;
        }

        $tagsList = parent::fetchObjectList( self::definition(), array(), $params,
                                                         array(), null, false, false,
                                                         array( array( 'operation' => 'COUNT( * )',
                                                                       'name'      => 'row_count' ) ),
                                                         array( 'eztags_keyword' ), $customConds );

        return $tagsList[0]['row_count'];
    }
static public function fetchListCount ( $ params , $ 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 ; } $ tagsList = parent :: fetchObjectList ( self :: definition ( ) , array ( ) , $ params , array ( ) , null , false , false , array ( array ( 'operation' => 'COUNT( * )' , 'name' => 'row_count' ) ) , array ( 'eztags_keyword' ) , $ customConds ) ; return $ tagsList [ 0 ] [ 'row_count' ] ; }
Returns count of eZTagsObject objects for given params

@static

@param mixed $params
@param bool $mainTranslation
@param mixed $locale

@return int
Returns count of eZTagsObject objects for given params