chris-at-github
6/20/2013 - 7:21 AM

Kategorie laden

Kategorie laden

$oDb        = oxDb::getInstance();
$oCategory  = oxNew('oxcategory');
$oCategory->setLanguage($this->getLanguage());

$sWhere   = $oCategory->getSqlActiveSnippet();
$sSelect  = 'SELECT * FROM
  oxcategories
  WHERE oxcategories.oxid = \'' . $oDb->escapeString($sOxid) . '\'';

if($oCategory->assignRecord($sSelect)) {
  return $oCategory;
}