/**
  * {@inheritDoc}
  */
 public function isPersistent()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'isPersistent', array());
     return parent::isPersistent();
 }
示例#2
0
 /**
  * We add the "removed" text for the products which were removed from the catalog
  *
  * @param string               $value  Product name
  * @param array                $column Column data
  * @param \XLite\Model\Product $entity Product model
  *
  * @return string
  */
 protected function preprocessName($value, array $column, \XLite\Model\Product $entity)
 {
     return $entity->isPersistent() ? $value : $value . ' <span class="removed">(removed)</span>';
 }