/** * Returns the list of related targets * * @param string $target Target name * * @return array */ protected function getRelatedTargets($target) { $targets = parent::getRelatedTargets($target); if ('payment_settings' == $target) { $targets[] = 'moneybookers_settings'; } return $targets; }
/** * Returns the list of related targets * * @param string $target Target name * * @return array */ protected function getRelatedTargets($target) { $targets = parent::getRelatedTargets($target); if ('shipping_methods' == $target) { $targets[] = 'usps'; } return $targets; }
/** * Define and set handler attributes; initialize handler * * @param array $params Handler params OPTIONAL * * @return void */ public function __construct(array $params = array()) { if (!isset($this->relatedTargets['roles'])) { $this->relatedTargets['roles'] = array(); } $this->relatedTargets['roles'][] = 'role'; parent::__construct(); }
/** * Define and set handler attributes; initialize handler * * @param array $params Handler params OPTIONAL * * @return void */ public function __construct(array $params = array()) { if (!isset($this->relatedTargets['menus'])) { $this->relatedTargets['menus'] = array('menu'); } if (!isset($this->relatedTargets['pages'])) { $this->relatedTargets['pages'] = array('page'); } parent::__construct(); }
/** * Check ACL permissions * * @return boolean */ protected function checkACL() { $auth = \XLite\Core\Auth::getInstance(); $additionalPermission = $this->getParam(self::PARAM_PERMISSION); return parent::checkACL() && ($this->getParam(self::PARAM_LIST) || $auth->isPermissionAllowed(\XLite\Model\Role\Permission::ROOT_ACCESS) || $additionalPermission && $auth->isPermissionAllowed($additionalPermission)); }