Eccube\Entity\Product::hasProductClass PHP Méthode

hasProductClass() public méthode

public hasProductClass ( )
    public function hasProductClass()
    {
        foreach ($this->ProductClasses as $ProductClass) {
            if (!is_null($ProductClass->getClassCategory1()) && $ProductClass->getDelFlg() == Constant::DISABLED) {
                return true;
            }
        }
        return false;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function hasProductClass()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'hasProductClass', array());
     return parent::hasProductClass();
 }