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); }
public function __construct() { parent::__construct('tax', 'manual', 'order', AdminResources::TAX, TheliaEvents::TAX_CREATE, TheliaEvents::TAX_UPDATE, TheliaEvents::TAX_DELETE); }
public function __construct() { parent::__construct('registration_date', null, null, AdminResources::ADDRESS, TheliaEvents::ADDRESS_CREATE, TheliaEvents::ADDRESS_UPDATE, TheliaEvents::ADDRESS_DELETE); }
/** * @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; }
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); }
public function __construct() { parent::__construct('variable', 'name', 'order', AdminResources::CONFIG, TheliaEvents::CONFIG_CREATE, TheliaEvents::CONFIG_UPDATE, TheliaEvents::CONFIG_DELETE, null, null); }
public function __construct() { parent::__construct('hook', 'id', 'order', AdminResources::HOOK, TheliaEvents::HOOK_CREATE, TheliaEvents::HOOK_UPDATE, TheliaEvents::HOOK_DELETE); }
public function __construct() { parent::__construct('currency', 'manual', 'order', AdminResources::CURRENCY, TheliaEvents::CURRENCY_CREATE, TheliaEvents::CURRENCY_UPDATE, TheliaEvents::CURRENCY_DELETE, null, TheliaEvents::CURRENCY_UPDATE_POSITION); }
public function __construct() { parent::__construct("diaporama_image", "manual", "order", AdminResources::MODULE, DiaporamaImageEvents::CREATE, DiaporamaImageEvents::UPDATE, DiaporamaImageEvents::DELETE, DiaporamaImageEvents::TOGGLE_VISIBILITY, DiaporamaImageEvents::UPDATE_POSITION, "Diaporamas"); }
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'); }
public function __construct() { parent::__construct("pop_in_campaign", "id", "order", AdminResources::MODULE, PopInCampaignEvents::CREATE, PopInCampaignEvents::UPDATE, PopInCampaignEvents::DELETE, null, null, "PopIn"); }
public function __construct() { parent::__construct('saleslocations', null, null, 'admin.saleslocations', SalesLocationsEvent::SALESLOCATIONS_CREATE, SalesLocationsEvent::SALESLOCATIONS_UPDATE, SalesLocationsEvent::SALESLOCATIONS_DELETE, SalesLocationsEvent::SALESLOCATIONS_TOGGLE_VISIBILITY, null); }
public function __construct() { parent::__construct('comment', 'created_reverse', 'order', AdminResources::CONFIG, CommentEvents::COMMENT_CREATE, CommentEvents::COMMENT_UPDATE, CommentEvents::COMMENT_DELETE, null, null, Comment::getModuleCode()); }
public function __construct() { parent::__construct('module', 'manual', 'module_order', AdminResources::MODULE, null, TheliaEvents::MODULE_UPDATE, null, null, TheliaEvents::MODULE_UPDATE_POSITION); }
public function __construct() { parent::__construct("diaporama", "id", "order", AdminResources::MODULE, DiaporamaEvents::CREATE, DiaporamaEvents::UPDATE, DiaporamaEvents::DELETE, null, null, "Diaporamas"); }
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); }
public function __construct() { parent::__construct('sale', 'start-date', 'order', AdminResources::SALES, TheliaEvents::SALE_CREATE, TheliaEvents::SALE_UPDATE, TheliaEvents::SALE_DELETE); }
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(); }
public function __construct() { parent::__construct('country', 'manual', 'country_order', AdminResources::COUNTRY, TheliaEvents::COUNTRY_CREATE, TheliaEvents::COUNTRY_UPDATE, TheliaEvents::COUNTRY_DELETE); }
public function __construct() { parent::__construct('administrator', 'manual', 'order', AdminResources::ADMINISTRATOR, TheliaEvents::ADMINISTRATOR_CREATE, TheliaEvents::ADMINISTRATOR_UPDATE, TheliaEvents::ADMINISTRATOR_DELETE); }
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)); }
public function __construct() { parent::__construct('message', null, null, AdminResources::MESSAGE, TheliaEvents::MESSAGE_CREATE, TheliaEvents::MESSAGE_UPDATE, TheliaEvents::MESSAGE_DELETE, null, null); }
public function __construct() { parent::__construct('attribute', 'manual', 'order', AdminResources::ATTRIBUTE, TheliaEvents::ATTRIBUTE_CREATE, TheliaEvents::ATTRIBUTE_UPDATE, TheliaEvents::ATTRIBUTE_DELETE, null, TheliaEvents::ATTRIBUTE_UPDATE_POSITION); }
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]); }
public function __construct() { parent::__construct('template', null, null, AdminResources::TEMPLATE, TheliaEvents::TEMPLATE_CREATE, TheliaEvents::TEMPLATE_UPDATE, TheliaEvents::TEMPLATE_DELETE, null, null); }
public function __construct() { parent::__construct('area', null, null, AdminResources::AREA, TheliaEvents::AREA_CREATE, TheliaEvents::AREA_UPDATE, TheliaEvents::AREA_DELETE); }
public function __construct() { parent::__construct('state', 'manual', 'state_order', AdminResources::STATE, TheliaEvents::STATE_CREATE, TheliaEvents::STATE_UPDATE, TheliaEvents::STATE_DELETE, TheliaEvents::STATE_TOGGLE_VISIBILITY); }