コード例 #1
0
 public function getFields()
 {
     $this->loadLanguageFile('backend/Review');
     $this->loadLanguageFile('backend/Product');
     $controller = new ReviewController($this->application);
     foreach ($controller->getAvailableColumns() as $key => $data) {
         $fields[$key] = $this->translate($data['name']);
     }
     unset($fields['Product.name']);
     $groupedFields = $this->getGroupedFields($fields);
     $identify = array();
     foreach (array('ID', 'sku') as $field) {
         $field = 'Product.' . $field;
         $identify[$field] = $this->application->translate($field);
     }
     $groupedFields['Product'] = $identify;
     return $groupedFields;
 }