Beispiel #1
0
 public function getFields()
 {
     $this->loadLanguageFile('backend/SiteNews');
     foreach (ActiveGridController::getSchemaColumns('NewsPost', $this->application) as $key => $data) {
         $fields[$key] = $this->translate($data['name']);
     }
     return $this->getGroupedFields($fields);
 }
 public function getFields()
 {
     $this->loadLanguageFile('backend/NewsletterSubscriber');
     foreach (ActiveGridController::getSchemaColumns('NewsletterSubscriber', $this->application) as $key => $data) {
         $fields[$key] = $this->translate($data['name']);
     }
     unset($fields['NewsletterSubscriber.confirmationCode']);
     return $this->getGroupedFields($fields);
 }
Beispiel #3
0
 public function getFields()
 {
     $this->loadLanguageFile('backend/Currency');
     foreach (ActiveGridController::getSchemaColumns('Currency', $this->application) as $key => $data) {
         $fields[$key] = $this->translate($data['name']);
     }
     unset($fields['Currency.position']);
     unset($fields['Currency.lastUpdated']);
     unset($fields['Currency.rounding']);
     return $this->getGroupedFields($fields);
 }
Beispiel #4
0
 public function getFields()
 {
     $this->loadLanguageFile('backend/User');
     $this->loadLanguageFile('backend/UserGroup');
     foreach (ActiveGridController::getSchemaColumns('UserAddress', $this->application) as $key => $data) {
         $fields[$key] = $this->translate($data['name']);
     }
     $groupedFields = $this->getGroupedFields($fields);
     $identify = array();
     foreach (array('ID', 'email', 'isDefault', 'isShipping') as $field) {
         $field = 'AddressUser.' . $field;
         $identify[$field] = $this->application->translate($field);
     }
     $groupedFields['AddressUser'] = $identify;
     return $groupedFields;
 }
Beispiel #5
0
 public function getFields()
 {
     $this->loadLanguageFile('backend/DeliveryZone');
     $this->loadLanguageFile('backend/ShippingService');
     foreach (ActiveGridController::getSchemaColumns('DeliveryZone', $this->application) as $key => $data) {
         $fields[$key] = $this->translate($data['name']);
     }
     $fields = array_intersect_key($fields, array_flip(array('DeliveryZone.ID', 'DeliveryZone.name')));
     foreach (ActiveGridController::getSchemaColumns('ShippingService', $this->application) as $key => $data) {
         $fields[$key] = $this->translate($data['name']);
     }
     foreach (ActiveGridController::getSchemaColumns('ShippingRate', $this->application) as $key => $data) {
         $fields[$key] = $this->translate($data['name']);
     }
     foreach (array('ShippingService.ID', 'ShippingService.position', 'ShippingRate.ID', 'ShippingRate.perItemChargeClass') as $unnecessary) {
         unset($fields[$unnecessary]);
     }
     return $this->getGroupedFields($fields);
 }