src/ShopBundle/objects/db/TShopArticle.class.php
public function getVariantIDList($aSelectedTypeValues = array(), $bLoadActiveOnly = true)
    {
        $aArticleIdList = array();
        $oVariantList = null;
        if ($this->IsVariant()) {
            $oParent = &$this->GetFieldVariantParent();
            $oVariantList = $oParent->GetFieldShopArticleVariantsList($aSelectedTypeValues, $bLoadActiveOnly);
        } else {
            $oVariantList = $this->GetFieldShopArticleVariantsList($aSelectedTypeValues, $bLoadActiveOnly);
        }

        if ($oVariantList->Length() > 0) {
            $oVariantList->GoToStart();
            while ($oVariantArticle = $oVariantList->Next()) {
                $aArticleIdList[] = MySqlLegacySupport::getInstance()->real_escape_string($oVariantArticle->id);
            }
        }

        return $aArticleIdList;
    }
public function getVariantIDList($aSelectedTypeValues = array(), $bLoadActiveOnly = true)
    {
        $aArticleIdList = array();
        $oVariantList = null;
        if ($this->IsVariant()) {
            $oParent = &$this->GetFieldVariantParent();
            $oVariantList = $oParent->GetFieldShopArticleVariantsList($aSelectedTypeValues, $bLoadActiveOnly);
        } else {
            $oVariantList = $this->GetFieldShopArticleVariantsList($aSelectedTypeValues, $bLoadActiveOnly);
        }

        if ($oVariantList->Length() > 0) {
            $oVariantList->GoToStart();
            while ($oVariantArticle = $oVariantList->Next()) {
                $aArticleIdList[] = MySqlLegacySupport::getInstance()->real_escape_string($oVariantArticle->id);
            }
        }

        return $aArticleIdList;
    }
public function getVariantIDList ( $ aSelectedTypeValues = array ( ) , $ bLoadActiveOnly = true ) { $ aArticleIdList = array ( ) ; $ oVariantList = null ; if ( $ this -> IsVariant ( ) ) { $ oParent = & $ this -> GetFieldVariantParent ( ) ; $ oVariantList = $ oParent -> GetFieldShopArticleVariantsList ( $ aSelectedTypeValues , $ bLoadActiveOnly ) ; } else { $ oVariantList = $ this -> GetFieldShopArticleVariantsList ( $ aSelectedTypeValues , $ bLoadActiveOnly ) ; } if ( $ oVariantList -> Length ( ) > 0 ) { $ oVariantList -> GoToStart ( ) ; while ( $ oVariantArticle = $ oVariantList -> Next ( ) ) { $ aArticleIdList [ ] = MySqlLegacySupport :: getInstance ( ) -> real_escape_string ( $ oVariantArticle -> id ) ; } } return $ aArticleIdList ; }
returns an array of IDs of all variant articles of this article.

@param array $aSelectedTypeValues - restrict list to values matching this preselection (format: array(shop_variant_type_id=>shop_variant_type_value_id,...)
@param bool  $bLoadActiveOnly     - set to false if you want to load inactive articles too

@return array
returns an array of IDs of all variant articles of this article .