src/SearchBundle/objects/db/TShopSearchKeywordArticleList.class.php
public static function &GetListForShopKeywords($iShopId, $aKeywordList, $iLanguageId = null)
    {
        if (null === $iLanguageId) {
            $iLanguageId = self::getMyLanguageService()->getActiveLanguageId();
        }
        $aKeywordList = TTools::MysqlRealEscapeArray($aKeywordList);
        $query = self::GetDefaultQuery($iLanguageId, "`shop_search_keyword_article`.`shop_id`= '".MySqlLegacySupport::getInstance()->real_escape_string($iShopId)."' AND `shop_search_keyword_article`.`name` IN ('".implode("','", $aKeywordList)."') AND (`shop_search_keyword_article`.`cms_language_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($iLanguageId)."' OR `shop_search_keyword_article`.`cms_language_id` = '') ");

        return TdbShopSearchKeywordArticleList::GetList($query, $iLanguageId);
    }
public static function &GetListForShopKeywords($iShopId, $aKeywordList, $iLanguageId = null)
    {
        if (null === $iLanguageId) {
            $iLanguageId = self::getMyLanguageService()->getActiveLanguageId();
        }
        $aKeywordList = TTools::MysqlRealEscapeArray($aKeywordList);
        $query = self::GetDefaultQuery($iLanguageId, "`shop_search_keyword_article`.`shop_id`= '".MySqlLegacySupport::getInstance()->real_escape_string($iShopId)."' AND `shop_search_keyword_article`.`name` IN ('".implode("','", $aKeywordList)."') AND (`shop_search_keyword_article`.`cms_language_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($iLanguageId)."' OR `shop_search_keyword_article`.`cms_language_id` = '') ");

        return TdbShopSearchKeywordArticleList::GetList($query, $iLanguageId);
    }
public static function & GetListForShopKeywords ( $ iShopId , $ aKeywordList , $ iLanguageId = null ) { if ( null === $ iLanguageId ) { $ iLanguageId = self :: getMyLanguageService ( ) -> getActiveLanguageId ( ) ; } $ aKeywordList = TTools :: MysqlRealEscapeArray ( $ aKeywordList ) ; $ query = self :: GetDefaultQuery ( $ iLanguageId , "`shop_search_keyword_article`.`shop_id`= '" . MySqlLegacySupport :: getInstance ( ) -> real_escape_string ( $ iShopId ) . "' AND `shop_search_keyword_article`.`name` IN ('" . implode ( "','" , $ aKeywordList ) . "') AND (`shop_search_keyword_article`.`cms_language_id` = '" . MySqlLegacySupport :: getInstance ( ) -> real_escape_string ( $ iLanguageId ) . "' OR `shop_search_keyword_article`.`cms_language_id` = '') " ) ; return TdbShopSearchKeywordArticleList :: GetList ( $ query , $ iLanguageId ) ; }
return list for a set of keywords.

@param int   $iShopId
@param array $aKeywordList
@param int   $iLanguageId

@return TdbShopSearchKeywordArticleList
return list for a set of keywords .