コード例 #1
0
 public function __construct()
 {
     parent::__construct('orderstatus', 'manual', 'order', AdminResources::ORDER_STATUS, TheliaEvents::ORDER_STATUS_CREATE, TheliaEvents::ORDER_STATUS_UPDATE, TheliaEvents::ORDER_STATUS_DELETE, null, TheliaEvents::ORDER_STATUS_UPDATE_POSITION);
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct('tax', 'manual', 'order', AdminResources::TAX, TheliaEvents::TAX_CREATE, TheliaEvents::TAX_UPDATE, TheliaEvents::TAX_DELETE);
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct('registration_date', null, null, AdminResources::ADDRESS, TheliaEvents::ADDRESS_CREATE, TheliaEvents::ADDRESS_UPDATE, TheliaEvents::ADDRESS_DELETE);
 }
コード例 #4
0
 /**
  * @param string $objectName the lower case object name. Example. "message"
  *
  * @param string $defaultListOrder          the default object list order, or null if list is not sortable. Example: manual
  * @param string $orderRequestParameterName Name of the request parameter that set the list order (null if list is not sortable)
  *
  * @param string $resourceCode the 'resource' code. Example: "admin.configuration.message"
  *
  * @param string $createEventIdentifier the dispatched create TheliaEvent identifier. Example: TheliaEvents::MESSAGE_CREATE
  * @param string $updateEventIdentifier the dispatched update TheliaEvent identifier. Example: TheliaEvents::MESSAGE_UPDATE
  * @param string $deleteEventIdentifier the dispatched delete TheliaEvent identifier. Example: TheliaEvents::MESSAGE_DELETE
  *
  * @param string $visibilityToggleEventIdentifier the dispatched visibility toggle TheliaEvent identifier, or null if the object has no visible options. Example: TheliaEvents::MESSAGE_TOGGLE_VISIBILITY
  * @param string $changePositionEventIdentifier   the dispatched position change TheliaEvent identifier, or null if the object has no position. Example: TheliaEvents::MESSAGE_UPDATE_POSITION
  * @param string $updateSeoEventIdentifier        the dispatched update SEO change TheliaEvent identifier, or null if the object has no SEO. Example: TheliaEvents::MESSAGE_UPDATE_SEO
  * @param string $moduleCode The module code for ACL
  */
 public function __construct($objectName, $defaultListOrder, $orderRequestParameterName, $resourceCode, $createEventIdentifier, $updateEventIdentifier, $deleteEventIdentifier, $visibilityToggleEventIdentifier = null, $changePositionEventIdentifier = null, $updateSeoEventIdentifier = null, $moduleCode = null)
 {
     parent::__construct($objectName, $defaultListOrder, $orderRequestParameterName, $resourceCode, $createEventIdentifier, $updateEventIdentifier, $deleteEventIdentifier, $visibilityToggleEventIdentifier, $changePositionEventIdentifier, $moduleCode);
     $this->updateSeoEventIdentifier = $updateSeoEventIdentifier;
 }
コード例 #5
0
 public function __construct()
 {
     parent::__construct('featureav', 'manual', 'order', AdminResources::FEATURE, TheliaEvents::FEATURE_AV_CREATE, TheliaEvents::FEATURE_AV_UPDATE, TheliaEvents::FEATURE_AV_DELETE, null, TheliaEvents::FEATURE_AV_UPDATE_POSITION);
 }
コード例 #6
0
ファイル: ConfigController.php プロジェクト: alex63530/thelia
 public function __construct()
 {
     parent::__construct('variable', 'name', 'order', AdminResources::CONFIG, TheliaEvents::CONFIG_CREATE, TheliaEvents::CONFIG_UPDATE, TheliaEvents::CONFIG_DELETE, null, null);
 }
コード例 #7
0
ファイル: HookController.php プロジェクト: badelas/thelia
 public function __construct()
 {
     parent::__construct('hook', 'id', 'order', AdminResources::HOOK, TheliaEvents::HOOK_CREATE, TheliaEvents::HOOK_UPDATE, TheliaEvents::HOOK_DELETE);
 }
コード例 #8
0
ファイル: CurrencyController.php プロジェクト: badelas/thelia
 public function __construct()
 {
     parent::__construct('currency', 'manual', 'order', AdminResources::CURRENCY, TheliaEvents::CURRENCY_CREATE, TheliaEvents::CURRENCY_UPDATE, TheliaEvents::CURRENCY_DELETE, null, TheliaEvents::CURRENCY_UPDATE_POSITION);
 }
コード例 #9
0
 public function __construct()
 {
     parent::__construct("diaporama_image", "manual", "order", AdminResources::MODULE, DiaporamaImageEvents::CREATE, DiaporamaImageEvents::UPDATE, DiaporamaImageEvents::DELETE, DiaporamaImageEvents::TOGGLE_VISIBILITY, DiaporamaImageEvents::UPDATE_POSITION, "Diaporamas");
 }
コード例 #10
0
 public function __construct()
 {
     parent::__construct('freeShipping', 'manual', 'freeShipping_order', [], FreeShippingEvents::FREE_SHIPPING_RULE_CREATE, FreeShippingUpdateEvent::FREE_SHIPPING_RULE_UPDATE, FreeShippingDeleteEvent::FREE_SHIPPING_RULE_DELETE, null, null, 'FreeShipping');
 }
コード例 #11
0
 public function __construct()
 {
     parent::__construct("pop_in_campaign", "id", "order", AdminResources::MODULE, PopInCampaignEvents::CREATE, PopInCampaignEvents::UPDATE, PopInCampaignEvents::DELETE, null, null, "PopIn");
 }
コード例 #12
0
 public function __construct()
 {
     parent::__construct('saleslocations', null, null, 'admin.saleslocations', SalesLocationsEvent::SALESLOCATIONS_CREATE, SalesLocationsEvent::SALESLOCATIONS_UPDATE, SalesLocationsEvent::SALESLOCATIONS_DELETE, SalesLocationsEvent::SALESLOCATIONS_TOGGLE_VISIBILITY, null);
 }
コード例 #13
0
ファイル: CommentController.php プロジェクト: blump/Comment
 public function __construct()
 {
     parent::__construct('comment', 'created_reverse', 'order', AdminResources::CONFIG, CommentEvents::COMMENT_CREATE, CommentEvents::COMMENT_UPDATE, CommentEvents::COMMENT_DELETE, null, null, Comment::getModuleCode());
 }
コード例 #14
0
ファイル: ModuleController.php プロジェクト: margery/thelia
 public function __construct()
 {
     parent::__construct('module', 'manual', 'module_order', AdminResources::MODULE, null, TheliaEvents::MODULE_UPDATE, null, null, TheliaEvents::MODULE_UPDATE_POSITION);
 }
コード例 #15
0
 public function __construct()
 {
     parent::__construct("diaporama", "id", "order", AdminResources::MODULE, DiaporamaEvents::CREATE, DiaporamaEvents::UPDATE, DiaporamaEvents::DELETE, null, null, "Diaporamas");
 }
コード例 #16
0
 public function __construct()
 {
     parent::__construct('hook', 'manual', 'hook_order', AdminResources::MODULE_HOOK, TheliaEvents::MODULE_HOOK_CREATE, TheliaEvents::MODULE_HOOK_UPDATE, TheliaEvents::MODULE_HOOK_DELETE, null, TheliaEvents::MODULE_HOOK_UPDATE_POSITION);
 }
コード例 #17
0
ファイル: SaleController.php プロジェクト: badelas/thelia
 public function __construct()
 {
     parent::__construct('sale', 'start-date', 'order', AdminResources::SALES, TheliaEvents::SALE_CREATE, TheliaEvents::SALE_UPDATE, TheliaEvents::SALE_DELETE);
 }
コード例 #18
0
 public function updateAction()
 {
     if (null !== ($response = $this->checkAuth($this->resourceCode, array(), AccessManager::UPDATE))) {
         return $response;
     }
     $object = $this->getExistingObject();
     if ($object != null) {
         // Hydrate the form abd pass it to the parser
         $changeTaxesForm = $this->hydrateTaxUpdateForm($object);
         // Pass it to the parser
         $this->getParserContext()->addForm($changeTaxesForm);
     }
     return parent::updateAction();
 }
コード例 #19
0
 public function __construct()
 {
     parent::__construct('country', 'manual', 'country_order', AdminResources::COUNTRY, TheliaEvents::COUNTRY_CREATE, TheliaEvents::COUNTRY_UPDATE, TheliaEvents::COUNTRY_DELETE);
 }
コード例 #20
0
 public function __construct()
 {
     parent::__construct('administrator', 'manual', 'order', AdminResources::ADMINISTRATOR, TheliaEvents::ADMINISTRATOR_CREATE, TheliaEvents::ADMINISTRATOR_UPDATE, TheliaEvents::ADMINISTRATOR_DELETE);
 }
コード例 #21
0
 public function deleteAction()
 {
     try {
         parent::deleteAction();
     } catch (CustomerException $e) {
         $error_msg = $e->getMessage();
     }
     return $this->renderListTemplate($this->getCurrentListOrder(), array("removal_error" => true, "error_message" => $error_msg));
 }
コード例 #22
0
ファイル: MessageController.php プロジェクト: margery/thelia
 public function __construct()
 {
     parent::__construct('message', null, null, AdminResources::MESSAGE, TheliaEvents::MESSAGE_CREATE, TheliaEvents::MESSAGE_UPDATE, TheliaEvents::MESSAGE_DELETE, null, null);
 }
コード例 #23
0
 public function __construct()
 {
     parent::__construct('attribute', 'manual', 'order', AdminResources::ATTRIBUTE, TheliaEvents::ATTRIBUTE_CREATE, TheliaEvents::ATTRIBUTE_UPDATE, TheliaEvents::ATTRIBUTE_DELETE, null, TheliaEvents::ATTRIBUTE_UPDATE_POSITION);
 }
コード例 #24
0
ファイル: CustomerController.php プロジェクト: badelas/thelia
 public function deleteAction()
 {
     $errorMsg = "No error.";
     $removalError = false;
     try {
         parent::deleteAction();
     } catch (CustomerException $e) {
         $errorMsg = $e->getMessage();
         $removalError = true;
     }
     return $this->renderListTemplate($this->getCurrentListOrder(), ["removal_error" => $removalError, "error_message" => $errorMsg]);
 }
コード例 #25
0
 public function __construct()
 {
     parent::__construct('template', null, null, AdminResources::TEMPLATE, TheliaEvents::TEMPLATE_CREATE, TheliaEvents::TEMPLATE_UPDATE, TheliaEvents::TEMPLATE_DELETE, null, null);
 }
コード例 #26
0
ファイル: AreaController.php プロジェクト: zorn-v/thelia
 public function __construct()
 {
     parent::__construct('area', null, null, AdminResources::AREA, TheliaEvents::AREA_CREATE, TheliaEvents::AREA_UPDATE, TheliaEvents::AREA_DELETE);
 }
コード例 #27
0
ファイル: StateController.php プロジェクト: zorn-v/thelia
 public function __construct()
 {
     parent::__construct('state', 'manual', 'state_order', AdminResources::STATE, TheliaEvents::STATE_CREATE, TheliaEvents::STATE_UPDATE, TheliaEvents::STATE_DELETE, TheliaEvents::STATE_TOGGLE_VISIBILITY);
 }