source/Application/Model/SimpleVariant.php
public function inCategory($sCatNid)
    {
        $blIn = false;
        if (($oParent = $this->getParent())) {
            $blIn = $oParent->inCategory($sCatNid);
        }

        return $blIn;
    }
public function inCategory($sCatNid)
    {
        $blIn = false;
        if (($oParent = $this->getParent())) {
            $blIn = $oParent->inCategory($sCatNid);
        }

        return $blIn;
    }
public function inCategory ( $ sCatNid ) { $ blIn = false ; if ( ( $ oParent = $ this -> getParent ( ) ) ) { $ blIn = $ oParent -> inCategory ( $ sCatNid ) ; } return $ blIn ; }
Checks if article is assigned to category

@param string $sCatNid category ID

@return bool
Checks if article is assigned to category