예제 #1
0
 /**
  * Define and set handler attributes; initialize handler
  *
  * @param array $params Handler params OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array())
 {
     parent::__construct();
     if (!in_array('product_variant', $this->relatedTargets['product_list'])) {
         $this->relatedTargets['product_list'][] = 'product_variant';
     }
 }
예제 #2
0
 /**
  * Returns the list of related targets
  *
  * @param string $target Target name
  *
  * @return array
  */
 public function getRelatedTargets($target)
 {
     $targets = parent::getRelatedTargets($target);
     if ('payment_settings' == $target) {
         $targets[] = 'moneybookers_settings';
     }
     return $targets;
 }
예제 #3
0
 /**
  * Returns the list of related targets
  *
  * @param string $target Target name
  *
  * @return array
  */
 public function getRelatedTargets($target)
 {
     $targets = parent::getRelatedTargets($target);
     if ('profile_list' == $target) {
         $targets[] = 'saved_cards';
     }
     return $targets;
 }
예제 #4
0
파일: AAdmin.php 프로젝트: kewaunited/xcart
 /**
  * Returns the list of related targets
  *
  * @param string $target Target name
  *
  * @return array
  */
 public function getRelatedTargets($target)
 {
     $targets = parent::getRelatedTargets($target);
     if ('shipping_methods' == $target) {
         $targets[] = 'usps';
     }
     return $targets;
 }
예제 #5
0
 /**
  * Define and set handler attributes; initialize handler
  *
  * @param array $params Handler params OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array())
 {
     parent::__construct();
     if (!in_array('sales_tax', $this->relatedTargets['tax_classes'])) {
         $this->relatedTargets['tax_classes'][] = 'sales_tax';
         $this->relatedTargets['sales_tax'] = $this->relatedTargets['tax_classes'];
         $this->relatedTargets['sales_tax'][] = 'tax_classes';
     }
 }
예제 #6
0
 /**
  * Returns the list of related targets
  *
  * @param string $target Target name
  *
  * @return array
  */
 public function getRelatedTargets($target)
 {
     $result = parent::getRelatedTargets($target);
     if ('payment_settings' === $target) {
         $result[] = 'paypal_settings';
         $result[] = 'paypal_credit';
     }
     return $result;
 }
예제 #7
0
 /**
  * Initialize handler
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     $this->relatedTargets['product'][] = 'upselling_products';
 }
예제 #8
0
 /**
  * Initialize handler
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     $this->relatedTargets[\XLite\Core\Request::getInstance()->id ? 'categories' : 'front_page'][] = 'featured_products';
 }
예제 #9
0
 /**
  * Register JS files
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     $list[] = $this->getDir() . '/controller.js';
     return $list;
 }
예제 #10
0
파일: Menu.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Get cache parameters
  *
  * @return array
  */
 protected function getCacheParameters()
 {
     $params = parent::getCacheParameters();
     $key = array();
     /** @var \XLite\View\Menu\Admin\LeftMenu\ANodeNotification $item */
     foreach ($this->getItems() as $item) {
         $key[] = $item->getCacheParameters();
     }
     $params[] = md5(serialize($key));
     return $params;
 }