Example #1
0
 /**
  * Check if the simple class is used for widget displaying
  *
  * @param array                $column Column
  * @param \XLite\Model\AEntity $entity Entity
  *
  * @return boolean
  */
 protected function isClassColumnVisible(array $column, \XLite\Model\AEntity $entity)
 {
     $result = parent::isClassColumnVisible($column, $entity);
     if ('useForMeta' == $column[static::COLUMN_CODE]) {
         $result = $result && $entity->isApproved();
     }
     return $result;
 }