Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * 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();
 }
Example #4
0
 /**
  * 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();
 }
Example #5
0
File: Node.php Project: kingsj/core
 /**
  * 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));
 }