src/ShopBundle/objects/db/TShopArticle.class.php
public function &GetContributorList($aContributorTypes)
    {
        if (!is_array($aContributorTypes)) {
            $aContributorTypes = array($aContributorTypes);
        }
        $aContributorTypes = TTools::MysqlRealEscapeArray($aContributorTypes);
        $sQuery = "SELECT `shop_contributor`.*
                   FROM `shop_article_contributor`
              LEFT JOIN `shop_contributor` ON `shop_article_contributor`.`shop_contributor_id` = `shop_contributor`.`id`
              LEFT JOIN `shop_contributor_type` ON `shop_article_contributor`.`shop_contributor_type_id` = `shop_contributor_type`.`id`
                  WHERE `shop_contributor_type`.`identifier` in ('".implode("', '", $aContributorTypes)."')
                    AND `shop_article_contributor`.`shop_article_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($this->id)."'
               ORDER BY `shop_article_contributor`.`position`
              ";

        return TdbShopContributorList::GetList($sQuery);
    }
public function &GetContributorList($aContributorTypes)
    {
        if (!is_array($aContributorTypes)) {
            $aContributorTypes = array($aContributorTypes);
        }
        $aContributorTypes = TTools::MysqlRealEscapeArray($aContributorTypes);
        $sQuery = "SELECT `shop_contributor`.*
                   FROM `shop_article_contributor`
              LEFT JOIN `shop_contributor` ON `shop_article_contributor`.`shop_contributor_id` = `shop_contributor`.`id`
              LEFT JOIN `shop_contributor_type` ON `shop_article_contributor`.`shop_contributor_type_id` = `shop_contributor_type`.`id`
                  WHERE `shop_contributor_type`.`identifier` in ('".implode("', '", $aContributorTypes)."')
                    AND `shop_article_contributor`.`shop_article_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($this->id)."'
               ORDER BY `shop_article_contributor`.`position`
              ";

        return TdbShopContributorList::GetList($sQuery);
    }
public function & GetContributorList ( $ aContributorTypes ) { if ( ! is_array ( $ aContributorTypes ) ) { $ aContributorTypes = array ( $ aContributorTypes ) ; } $ aContributorTypes = TTools :: MysqlRealEscapeArray ( $ aContributorTypes ) ; $ sQuery = "SELECT `shop_contributor`.*
                   FROM `shop_article_contributor`
              LEFT JOIN `shop_contributor` ON `shop_article_contributor`.`shop_contributor_id` = `shop_contributor`.`id`
              LEFT JOIN `shop_contributor_type` ON `shop_article_contributor`.`shop_contributor_type_id` = `shop_contributor_type`.`id`
                  WHERE `shop_contributor_type`.`identifier` in ('" . implode ( "', '" , $ aContributorTypes ) . "')
                    AND `shop_article_contributor`.`shop_article_id` = '" . MySqlLegacySupport :: getInstance ( ) -> real_escape_string ( $ this -> id ) . "'
               ORDER BY `shop_article_contributor`.`position`
              " ; return TdbShopContributorList :: GetList ( $ sQuery ) ; }
Returns Contributors for article for given types.

@param array $aContributorTypes (from field 'identifier')

@return TdbShopContributorList
Returns Contributors for article for given types .