static public function fetchTagsByKeyword( $keyword, $language = false )
    {
        if ( $language )
        {
            if ( !is_array( $language ) )
                $language = array( $language );
            eZContentLanguage::setPrioritizedLanguages( $language );
        }

        if ( strpos( $keyword, '*' ) !== false )
        {
            $keyword = preg_replace(
                array(
                    '#%#m',
                    '#(?<!\\\\)\\*#m',
                    '#(?<!\\\\)\\\\\\*#m',
                    '#\\\\\\\\#m'
                ),
                array(
                    '\\%',
                    '%',
                    '*',
                    '\\\\'
                ),
                $keyword
            );

            $keyword = array( 'like', $keyword );
        }

        $result = eZTagsObject::fetchByKeyword( $keyword );

        if ( $language )
            eZContentLanguage::clearPrioritizedLanguages();

        if ( is_array( $result ) && !empty( $result ) )
            return array( 'result' => $result );

        return array( 'result' => false );
    }
static public function fetchTagsByKeyword( $keyword, $language = false )
    {
        if ( $language )
        {
            if ( !is_array( $language ) )
                $language = array( $language );
            eZContentLanguage::setPrioritizedLanguages( $language );
        }

        if ( strpos( $keyword, '*' ) !== false )
        {
            $keyword = preg_replace(
                array(
                    '#%#m',
                    '#(?<!\\\\)\\*#m',
                    '#(?<!\\\\)\\\\\\*#m',
                    '#\\\\\\\\#m'
                ),
                array(
                    '\\%',
                    '%',
                    '*',
                    '\\\\'
                ),
                $keyword
            );

            $keyword = array( 'like', $keyword );
        }

        $result = eZTagsObject::fetchByKeyword( $keyword );

        if ( $language )
            eZContentLanguage::clearPrioritizedLanguages();

        if ( is_array( $result ) && !empty( $result ) )
            return array( 'result' => $result );

        return array( 'result' => false );
    }
static public function fetchTagsByKeyword ( $ keyword , $ language = false ) { if ( $ language ) { if ( ! is_array ( $ language ) ) $ language = array ( $ language ) ; eZContentLanguage :: setPrioritizedLanguages ( $ language ) ; } if ( strpos ( $ keyword , '*' ) !== false ) { $ keyword = preg_replace ( array ( '#%#m' , '#(?<!\\\\)\\*#m' , '#(?<!\\\\)\\\\\\*#m' , '#\\\\\\\\#m' ) , array ( '\\%' , '%' , '*' , '\\\\' ) , $ keyword ) ; $ keyword = array ( 'like' , $ keyword ) ; } $ result = eZTagsObject :: fetchByKeyword ( $ keyword ) ; if ( $ language ) eZContentLanguage :: clearPrioritizedLanguages ( ) ; if ( is_array ( $ result ) && ! empty ( $ result ) ) return array ( 'result' => $ result ) ; return array ( 'result' => false ) ; }
Fetches all tags named with provided keyword

@static

@param string $keyword
@param mixed $language

@return array
Fetches all tags named with provided keyword