コード例 #1
0
ファイル: ProductTable.php プロジェクト: spryker/Product
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyProductAbstractTableMap::COL_ID_PRODUCT_ABSTRACT => 'Id Product Abstract', SpyProductAbstractTableMap::COL_SKU => 'SKU', self::OPTIONS => self::OPTIONS]);
     $config->addRawColumn(self::OPTIONS);
     $config->setSearchable([SpyProductAbstractTableMap::COL_ID_PRODUCT_ABSTRACT, SpyProductAbstractTableMap::COL_SKU]);
     return $config;
 }
コード例 #2
0
ファイル: UsersTable.php プロジェクト: spryker/User
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyUserTableMap::COL_USERNAME => 'E-mail', SpyUserTableMap::COL_FIRST_NAME => 'First Name', SpyUserTableMap::COL_LAST_NAME => 'Last Name', SpyUserTableMap::COL_LAST_LOGIN => 'Last Login', SpyUserTableMap::COL_STATUS => 'Status', self::ACTION => self::ACTION]);
     $config->setRawColumns([SpyUserTableMap::COL_STATUS, self::ACTION]);
     $config->setSortable([SpyUserTableMap::COL_USERNAME, SpyUserTableMap::COL_FIRST_NAME, SpyUserTableMap::COL_LAST_NAME, SpyUserTableMap::COL_STATUS, SpyUserTableMap::COL_LAST_LOGIN]);
     $config->setSearchable([SpyUserTableMap::COL_USERNAME, SpyUserTableMap::COL_FIRST_NAME, SpyUserTableMap::COL_LAST_NAME]);
     return $config;
 }
コード例 #3
0
ファイル: GroupTable.php プロジェクト: spryker/Acl
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $this->setTableIdentifier('group-table');
     $config->setHeader([SpyAclGroupTableMap::COL_NAME => 'Name', self::ROLES => 'Roles', SpyAclGroupTableMap::COL_CREATED_AT => 'Created At', self::EDIT => self::EDIT]);
     $config->setSearchable([SpyAclGroupTableMap::COL_NAME]);
     $config->setRawColumns([self::EDIT, self::ROLES]);
     return $config;
 }
コード例 #4
0
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader($this->getHeaderFields());
     $config->setSearchable($this->getSearchableFields());
     $config->setSortable($this->getSortableFields());
     $config->addRawColumn(self::ACTION);
     return $config;
 }
コード例 #5
0
ファイル: RoleTable.php プロジェクト: spryker/Acl
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyAclRoleTableMap::COL_CREATED_AT => 'Created at', SpyAclRoleTableMap::COL_NAME => 'Name', self::ACTION => self::ACTION]);
     $config->addRawColumn(self::ACTION);
     $config->setSortable([SpyAclRoleTableMap::COL_CREATED_AT, SpyAclRoleTableMap::COL_NAME]);
     $config->setSearchable([SpyAclRoleTableMap::COL_NAME]);
     return $config;
 }
コード例 #6
0
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyProductAbstractTableMap::COL_ID_PRODUCT_ABSTRACT => 'ID', SpyProductAbstractTableMap::COL_SKU => 'SKU', SpyProductAbstractLocalizedAttributesTableMap::COL_NAME => 'Name', self::COL_CHECKBOX => 'Selected']);
     $config->setSearchable([SpyProductAbstractTableMap::COL_SKU, SpyProductAbstractLocalizedAttributesTableMap::COL_NAME]);
     $config->addRawColumn(self::COL_CHECKBOX);
     $config->setPageLength(10);
     return $config;
 }
コード例 #7
0
ファイル: CmsRedirectTable.php プロジェクト: spryker/Cms
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyUrlTableMap::COL_ID_URL => 'ID', SpyUrlTableMap::COL_URL => 'From Url', CmsQueryContainer::TO_URL => 'To Url', SpyUrlRedirectTableMap::COL_STATUS => 'Status', self::ACTIONS => self::ACTIONS]);
     $config->addRawColumn(self::ACTIONS);
     $config->setSortable([SpyUrlTableMap::COL_ID_URL, SpyUrlTableMap::COL_URL]);
     $config->setSearchable([SpyUrlTableMap::COL_ID_URL, SpyUrlTableMap::COL_URL, CmsQueryContainer::TO_URL => 'to_url', SpyUrlRedirectTableMap::COL_STATUS]);
     return $config;
 }
コード例 #8
0
ファイル: CmsPageTable.php プロジェクト: spryker/Cms
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyCmsPageTableMap::COL_ID_CMS_PAGE => 'Page Id', CmsQueryContainer::URL => 'URL', CmsQueryContainer::TEMPLATE_NAME => 'Template', CmsQueryContainer::IS_ACTIVE => 'Active', self::ACTIONS => self::ACTIONS]);
     $config->addRawColumn(self::ACTIONS);
     $config->setSortable([SpyCmsPageTableMap::COL_ID_CMS_PAGE, CmsQueryContainer::URL, CmsQueryContainer::TEMPLATE_NAME, CmsQueryContainer::IS_ACTIVE]);
     $config->setDefaultSortDirection(TableConfiguration::SORT_DESC);
     $config->setSearchable([SpyCmsPageTableMap::COL_ID_CMS_PAGE, CmsQueryContainer::TEMPLATE_NAME, CmsQueryContainer::URL]);
     return $config;
 }
コード例 #9
0
ファイル: CmsGlossaryTable.php プロジェクト: spryker/Cms
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyCmsGlossaryKeyMappingTableMap::COL_ID_CMS_GLOSSARY_KEY_MAPPING => 'Id', SpyCmsGlossaryKeyMappingTableMap::COL_PLACEHOLDER => 'Placeholder', CmsQueryContainer::KEY => 'Glossary Key', CmsQueryContainer::TRANS => 'Glossary Value', self::ACTIONS => self::ACTIONS]);
     $config->addRawColumn(self::ACTIONS);
     $config->setSortable([SpyCmsPageTableMap::COL_ID_CMS_PAGE]);
     $config->setSearchable([SpyCmsGlossaryKeyMappingTableMap::COL_ID_CMS_GLOSSARY_KEY_MAPPING, SpyCmsGlossaryKeyMappingTableMap::COL_PLACEHOLDER, CmsQueryContainer::KEY => SpyGlossaryKeyTableMap::COL_KEY, CmsQueryContainer::TRANS => SpyGlossaryTranslationTableMap::COL_VALUE]);
     $config->setUrl('table?' . CmsPageTable::REQUEST_ID_PAGE . '=' . $this->idPage);
     return $config;
 }
コード例 #10
0
ファイル: RefundTable.php プロジェクト: spryker/Refund
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyRefundTableMap::COL_ID_REFUND => 'Refund Id', SpyRefundTableMap::COL_FK_SALES_ORDER => 'Sales Order Id', SpyRefundTableMap::COL_CREATED_AT => 'Refund date', SpyRefundTableMap::COL_AMOUNT => 'Amount', SpyRefundTableMap::COL_COMMENT => 'Comment']);
     $config->setSortable([SpyRefundTableMap::COL_ID_REFUND, SpyRefundTableMap::COL_FK_SALES_ORDER, SpyRefundTableMap::COL_CREATED_AT, SpyRefundTableMap::COL_AMOUNT, SpyRefundTableMap::COL_COMMENT]);
     $config->setSearchable([SpyRefundTableMap::COL_ID_REFUND, SpyRefundTableMap::COL_FK_SALES_ORDER, SpyRefundTableMap::COL_CREATED_AT, SpyRefundTableMap::COL_AMOUNT, SpyRefundTableMap::COL_COMMENT]);
     $config->setDefaultSortColumnIndex(0);
     $config->setDefaultSortDirection(TableConfiguration::SORT_DESC);
     return $config;
 }
コード例 #11
0
ファイル: RulesetTable.php プロジェクト: spryker/Acl
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyAclRuleTableMap::COL_BUNDLE => 'Bundle', SpyAclRuleTableMap::COL_CONTROLLER => 'Controller', SpyAclRuleTableMap::COL_ACTION => 'Action', SpyAclRuleTableMap::COL_TYPE => 'Permission', self::ACTIONS => 'Actions']);
     $config->setSortable([SpyAclRuleTableMap::COL_BUNDLE, SpyAclRuleTableMap::COL_CONTROLLER, SpyAclRuleTableMap::COL_ACTION, SpyAclRuleTableMap::COL_TYPE]);
     $config->setSearchable([SpyAclRuleTableMap::COL_BUNDLE, SpyAclRuleTableMap::COL_CONTROLLER, SpyAclRuleTableMap::COL_ACTION]);
     $config->addRawColumn(self::ACTIONS);
     $config->setUrl(sprintf('ruleset-table?id-role=%d', $this->idRole));
     return $config;
 }
コード例 #12
0
ファイル: CustomerTable.php プロジェクト: spryker/Customer
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([self::COL_ID_CUSTOMER => '#', self::COL_CREATED_AT => 'Registration Date', self::COL_EMAIL => 'Email', self::COL_LAST_NAME => 'Last Name', self::COL_FIRST_NAME => 'First Name', self::COL_ZIP_CODE => 'Zip Code', self::COL_CITY => 'City', self::COL_FK_COUNTRY => 'Country', self::ACTIONS => self::ACTIONS]);
     $config->addRawColumn(self::ACTIONS);
     $config->addRawColumn(self::ACTIONS);
     $config->setSortable([self::COL_ID_CUSTOMER, self::COL_CREATED_AT, self::COL_EMAIL, self::COL_LAST_NAME, self::COL_FIRST_NAME, self::COL_ZIP_CODE, self::COL_CITY]);
     $config->setUrl('table');
     $config->setSearchable([SpyCustomerTableMap::COL_ID_CUSTOMER, SpyCustomerTableMap::COL_EMAIL, SpyCustomerTableMap::COL_CREATED_AT, SpyCustomerAddressTableMap::COL_FIRST_NAME, SpyCustomerAddressTableMap::COL_LAST_NAME, SpyCustomerAddressTableMap::COL_ZIP_CODE, SpyCustomerAddressTableMap::COL_CITY]);
     return $config;
 }
コード例 #13
0
ファイル: CmsBlockTable.php プロジェクト: spryker/Cms
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyCmsBlockTableMap::COL_ID_CMS_BLOCK => 'Block Id', SpyCmsBlockTableMap::COL_NAME => 'Name', CmsQueryContainer::TEMPLATE_NAME => 'Template', SpyCmsBlockTableMap::COL_TYPE => 'Type', SpyCmsBlockTableMap::COL_VALUE => 'Value', CmsQueryContainer::IS_ACTIVE => 'Active', self::ACTIONS => self::ACTIONS]);
     $config->addRawColumn(self::ACTIONS);
     $config->setSortable([SpyCmsBlockTableMap::COL_ID_CMS_BLOCK, SpyCmsBlockTableMap::COL_NAME, CmsQueryContainer::TEMPLATE_NAME, SpyCmsBlockTableMap::COL_TYPE, SpyCmsBlockTableMap::COL_VALUE, CmsQueryContainer::IS_ACTIVE]);
     $config->setDefaultSortDirection(TableConfiguration::SORT_DESC);
     $config->setSearchable([SpyCmsBlockTableMap::COL_ID_CMS_BLOCK, CmsQueryContainer::TEMPLATE_NAME, SpyCmsBlockTableMap::COL_TYPE, SpyCmsBlockTableMap::COL_VALUE, SpyCmsBlockTableMap::COL_NAME, SpyCategoryAttributeTableMap::COL_NAME]);
     $config->addRawColumn(SpyCmsBlockTableMap::COL_VALUE);
     return $config;
 }
コード例 #14
0
ファイル: AddressTable.php プロジェクト: spryker/Customer
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([SpyCustomerAddressTableMap::COL_ID_CUSTOMER_ADDRESS => '#', SpyCustomerAddressTableMap::COL_LAST_NAME => 'Last Name', SpyCustomerAddressTableMap::COL_FIRST_NAME => 'First Name', SpyCustomerAddressTableMap::COL_ADDRESS1 => 'Address ', SpyCustomerAddressTableMap::COL_ADDRESS2 => 'Address (2nd line)', SpyCustomerAddressTableMap::COL_ADDRESS3 => 'Address (3rd line)', SpyCustomerAddressTableMap::COL_COMPANY => 'Company', SpyCustomerAddressTableMap::COL_ZIP_CODE => 'Zip Code', SpyCustomerAddressTableMap::COL_CITY => 'City', self::COL_COMPANY => 'Country', self::ACTIONS => 'Actions']);
     $config->addRawColumn(self::ACTIONS);
     $config->addRawColumn(SpyCustomerAddressTableMap::COL_ADDRESS1);
     $config->setSortable([SpyCustomerAddressTableMap::COL_ID_CUSTOMER_ADDRESS, SpyCustomerAddressTableMap::COL_FIRST_NAME, SpyCustomerAddressTableMap::COL_LAST_NAME, SpyCustomerAddressTableMap::COL_ZIP_CODE, SpyCustomerAddressTableMap::COL_FK_COUNTRY]);
     $config->setSearchable([SpyCustomerAddressTableMap::COL_ID_CUSTOMER_ADDRESS, SpyCustomerAddressTableMap::COL_LAST_NAME, SpyCustomerAddressTableMap::COL_FIRST_NAME, SpyCustomerAddressTableMap::COL_ADDRESS1, SpyCustomerAddressTableMap::COL_ADDRESS2, SpyCustomerAddressTableMap::COL_ADDRESS3, SpyCustomerAddressTableMap::COL_ZIP_CODE]);
     $config->setUrl(sprintf('table?id-customer=%d', $this->idCustomer));
     return $config;
 }
コード例 #15
0
ファイル: DiscountsTable.php プロジェクト: spryker/Discount
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $url = Url::generate('listTable')->build();
     $config->setUrl($url);
     $config->setHeader([SpyDiscountTableMap::COL_ID_DISCOUNT => 'Discount ID', SpyDiscountTableMap::COL_DISPLAY_NAME => 'Name', SpyDiscountTableMap::COL_AMOUNT => 'Amount', self::TABLE_COL_TYPE => self::TABLE_COL_TYPE, self::TYPE_COL_PERIOD => self::TABLE_COL_PERIOD, SpyDiscountTableMap::COL_IS_ACTIVE => 'Status', SpyDiscountTableMap::COL_IS_EXCLUSIVE => 'Exclusive', self::TABLE_COL_ACTIONS => self::TABLE_COL_ACTIONS]);
     $config->setSearchable([SpyDiscountTableMap::COL_DISPLAY_NAME, SpyDiscountTableMap::COL_ID_DISCOUNT]);
     $config->setSortable([SpyDiscountTableMap::COL_ID_DISCOUNT, SpyDiscountTableMap::COL_DISPLAY_NAME, SpyDiscountTableMap::COL_AMOUNT, SpyDiscountTableMap::COL_IS_ACTIVE, SpyDiscountTableMap::COL_IS_EXCLUSIVE]);
     $config->setDefaultSortColumnIndex(0);
     $config->setDefaultSortDirection(TableConfiguration::SORT_DESC);
     $config->addRawColumn(self::TABLE_COL_ACTIONS);
     return $config;
 }
コード例 #16
0
ファイル: SetTable.php プロジェクト: spryker/Tax
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $url = Url::generate('listTable')->build();
     $config->setUrl($url);
     $config->setHeader([SpyTaxSetTableMap::COL_ID_TAX_SET => 'Tax set ID', SpyTaxSetTableMap::COL_NAME => 'Name', SpyTaxSetTableMap::COL_CREATED_AT => 'Created at', self::TABLE_COL_ACTIONS => 'Actions']);
     $config->setSearchable([SpyTaxSetTableMap::COL_ID_TAX_SET, SpyTaxSetTableMap::COL_NAME]);
     $config->setSortable([SpyTaxSetTableMap::COL_ID_TAX_SET, SpyTaxSetTableMap::COL_NAME, SpyTaxSetTableMap::COL_CREATED_AT]);
     $config->setDefaultSortColumnIndex(0);
     $config->setDefaultSortDirection(TableConfiguration::SORT_DESC);
     $config->addRawColumn(self::TABLE_COL_ACTIONS);
     return $config;
 }
コード例 #17
0
ファイル: OrdersTable.php プロジェクト: spryker/Sales
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader($this->getHeaderFields());
     $config->setSearchable($this->getSearchableFields());
     $config->setSortable($this->getSortableFields());
     $config->addRawColumn(self::URL);
     $config->addRawColumn(SpySalesOrderTableMap::COL_FK_CUSTOMER);
     $config->setDefaultSortColumnIndex(0);
     $config->setDefaultSortDirection(TableConfiguration::SORT_DESC);
     $this->persistFilters($config);
     return $config;
 }
コード例 #18
0
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $url = Url::generate('table', ['id-pool' => $this->idPool, 'id-discount' => $this->idDiscount, 'batch' => $this->batchValue]);
     $config->setUrl($url->build());
     $this->tableClass .= ' table-data-codes';
     $config->setHeader([SpyDiscountVoucherTableMap::COL_CODE => 'Voucher Code', SpyDiscountVoucherTableMap::COL_NUMBER_OF_USES => 'Used', SpyDiscountVoucherTableMap::COL_MAX_NUMBER_OF_USES => 'Max nr. of uses', SpyDiscountVoucherTableMap::COL_CREATED_AT => 'Created At', SpyDiscountVoucherTableMap::COL_VOUCHER_BATCH => 'Batch Value', self::HEADER_COL_ACTIONS => self::HEADER_COL_ACTIONS]);
     $config->setSortable([SpyDiscountVoucherTableMap::COL_CODE, SpyDiscountVoucherTableMap::COL_NUMBER_OF_USES, SpyDiscountVoucherTableMap::COL_MAX_NUMBER_OF_USES, SpyDiscountVoucherTableMap::COL_CREATED_AT, SpyDiscountVoucherTableMap::COL_VOUCHER_BATCH]);
     $config->setDefaultSortColumnIndex(3);
     $config->setDefaultSortDirection('DESC');
     $config->setSearchable([SpyDiscountVoucherTableMap::COL_CODE, SpyDiscountVoucherTableMap::COL_NUMBER_OF_USES, SpyDiscountVoucherTableMap::COL_MAX_NUMBER_OF_USES, SpyDiscountVoucherTableMap::COL_CREATED_AT, SpyDiscountVoucherTableMap::COL_VOUCHER_BATCH]);
     $config->addRawColumn(self::HEADER_COL_ACTIONS);
     return $config;
 }
コード例 #19
0
ファイル: TranslationTable.php プロジェクト: spryker/Glossary
 /**
  * @inheritDoc
  */
 protected function configure(TableConfiguration $config)
 {
     $headers = [SpyGlossaryKeyTableMap::COL_ID_GLOSSARY_KEY => '#', SpyGlossaryKeyTableMap::COL_KEY => 'Name'];
     foreach ($this->locales as $key => $value) {
         $headers[$value] = $value;
         $config->addRawColumn($value);
     }
     $config->setSearchable([SpyGlossaryTranslationTableMap::COL_VALUE, SpyGlossaryKeyTableMap::COL_KEY]);
     $headers[self::ACTIONS] = self::ACTIONS;
     $config->setHeader($headers);
     $config->addRawColumn(self::ACTIONS);
     $config->setUrl('table');
     $config->setSortable([SpyLocaleTableMap::COL_LOCALE_NAME, SpyGlossaryTranslationTableMap::COL_ID_GLOSSARY_TRANSLATION]);
     return $config;
 }
コード例 #20
0
ファイル: TransitionLogTable.php プロジェクト: spryker/Oms
 /**
  * @inheritDoc
  * @throws \UnexpectedValueException
  * @throws \Spryker\Zed\Oms\Business\Exception\TransitionLogException
  */
 protected function configure(TableConfiguration $config)
 {
     $headers = [SpyOmsTransitionLogTableMap::COL_FK_SALES_ORDER_ITEM => 'Item', SpyOmsTransitionLogTableMap::COL_EVENT => 'Event', SpyOmsTransitionLogTableMap::COL_CONDITION => 'Condition', SpyOmsTransitionLogTableMap::COL_SOURCE_STATE => 'Source state', SpyOmsTransitionLogTableMap::COL_TARGET_STATE => 'Target state', SpyOmsTransitionLogTableMap::COL_COMMAND => 'Command', SpyOmsTransitionLogTableMap::COL_IS_ERROR => 'Is error', SpyOmsTransitionLogTableMap::COL_ERROR_MESSAGE => 'Error message', SpyOmsTransitionLogTableMap::COL_PATH => 'Path', SpyOmsTransitionLogTableMap::COL_HOSTNAME => 'Hostname', SpyOmsTransitionLogTableMap::COL_CREATED_AT => 'Date'];
     $config->setHeader($headers);
     $config->setUrl('table-ajax?id-order=' . $this->getIdOrder());
     $createdAtColumnIndex = array_search(SpyOmsTransitionLogTableMap::COL_CREATED_AT, array_keys($config->getHeader()));
     if ($createdAtColumnIndex === false) {
         throw new \UnexpectedValueException('Not a valid column index');
     }
     if (!$createdAtColumnIndex) {
         throw new TransitionLogException('Could not find "createdAd" column index');
     }
     $config->setDefaultSortColumnIndex($createdAtColumnIndex);
     $config->setDefaultSortDirection(TableConfiguration::SORT_DESC);
     $config->setSearchable([SpyOmsTransitionLogTableMap::COL_SOURCE_STATE]);
     $config->setSortable([SpyOmsTransitionLogTableMap::COL_CREATED_AT]);
     return $config;
 }
コード例 #21
0
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return \Spryker\Zed\Gui\Communication\Table\TableConfiguration
  */
 protected function configure(TableConfiguration $config)
 {
     $config->setHeader([PavCmsBlockTableMap::COL_ID_CMS_BLOCK => 'CmsBlock Id', PavCmsBlockTableMap::COL_NAME => 'CmsBlock Name', PavCmsBlockTableMap::COL_TEMPLATE_TYPE => 'Template Type', self::ACTIONS => '']);
     $config->setSearchable([PavCmsBlockTableMap::COL_NAME]);
     return $config;
 }
コード例 #22
0
ファイル: MethodTable.php プロジェクト: spryker/Shipment
 /**
  * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config
  *
  * @return void
  */
 protected function configureSearchable(TableConfiguration $config)
 {
     $config->setSearchable([SpyShipmentMethodTableMap::COL_FK_SHIPMENT_CARRIER, SpyShipmentMethodTableMap::COL_NAME, SpyShipmentMethodTableMap::COL_DEFAULT_PRICE]);
 }