source/Application/Model/Category.php
public function setContentCat($oContent, $sKey = null)
    {
        if ($sKey) {
            $this->_aContentCats[$sKey] = $oContent;
        } else {
            $this->_aContentCats[] = $oContent;
        }
    }
public function setContentCat($oContent, $sKey = null)
    {
        if ($sKey) {
            $this->_aContentCats[$sKey] = $oContent;
        } else {
            $this->_aContentCats[] = $oContent;
        }
    }
public function setContentCat ( $ oContent , $ sKey = null ) { if ( $ sKey ) { $ this -> _aContentCats [ $ sKey ] = $ oContent ; } else { $ this -> _aContentCats [ ] = $ oContent ; } }
sets a single category

@param \OxidEsales\Eshop\Application\Model\Category $oContent the category
@param string                                       $sKey     optional, the key for that category,
without a key, the category is just added to the array
sets a single category