public function load( $oxid )
{
parent::load( $oxid );
$sSelect = “SELECT * FROM oxarticles WHERE (”;
foreach( $aArtIDs as $sArtID )
{
$sSelect .= " OXID = ‘$sArtID’ OR";
}
$sSelect = rtrim( $sSelect, “OR” );
$sSelect .= “)”;
/** @var ArticleList $oList */
$oList = oxNew( ArticleList::class );
$oList->selectString( $sSelect );
$aArticles = array();
/** @var Article $oProduct */
foreach( $oList as $oProduct )
{
$aArticles[] = array(
'id' => $oProduct->getId(),
'title' => $oProduct->oxarticles__oxtitle->value,
'artnum' => $oProduct->oxarticles__oxartnum->value,
'ean' => $oProduct->oxarticles__oxean->value,
'icon' => $oProduct->getIconUrl(),
'description' => 'Art-Nr.: ' . $oProduct->oxarticles__oxartnum->value . ( $oProduct->oxarticles__oxean->value ? ' / EAN: ' . $oProduct->oxarticles__oxean->value : '' ),
);
}
}