Example #1
0
 /**
  * Define columns structure
  *
  * @return array
  */
 protected function defineColumns()
 {
     $allowedColumns = array('reviewerName', 'rating', 'status', 'additionDate');
     $columns = parent::defineColumns();
     // Remove redundant columns
     foreach ($columns as $k => $v) {
         if (!in_array($k, $allowedColumns)) {
             unset($columns[$k]);
         }
     }
     $columns['useForMeta'] = array(static::COLUMN_NAME => static::t('SEO'), static::COLUMN_HEAD_HELP => static::t('Select the review that should be included into the rich snippet shown for the page of this product when the page appears in search results by Google and other major search engines'), static::COLUMN_CLASS => '\\XLite\\View\\FormField\\Inline\\Input\\Radio\\Radio', static::COLUMN_EDIT_ONLY => true, static::COLUMN_PARAMS => array('fieldName' => 'useForMeta'), static::COLUMN_ORDERBY => 600);
     return $columns;
 }