/** * Return attribute title * * @param \XLite\Model\Attribute $attribute Attribute * * @return integer */ protected function getAttributeCount(\XLite\Model\Attribute $attribute) { return count($attribute->getAttributeValue($this->getProduct())); }
/** * {@inheritDoc} */ public function getAttributeValue(\XLite\Model\Product $product, $asString = false) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAttributeValue', array($product, $asString)); return parent::getAttributeValue($product, $asString); }