コード例 #1
0
ファイル: SaleSelectedDialog.php プロジェクト: kingsj/core
 /**
  * Called before the includeCompiledFile()
  *
  * @return void
  */
 protected function initView()
 {
     parent::initView();
     $toDelete = array();
     if (is_array(\XLite\Core\Request::getInstance()->select)) {
         foreach (\XLite\Core\Request::getInstance()->select as $productId => $value) {
             $toDelete['select[' . $productId . ']'] = $productId;
         }
     }
     $postedData = array('postedData[participateSale]' => true);
     $this->widgetParams[self::PARAM_FORM_PARAMS]->appendValue($toDelete);
     $this->widgetParams[self::PARAM_FORM_PARAMS]->appendValue($postedData);
 }
コード例 #2
0
ファイル: ChangeOptions.php プロジェクト: kingsj/core
 /**
  * Initialization
  *
  * @return void
  */
 protected function initView()
 {
     parent::initView();
     $this->widgetParams[self::PARAM_FORM_PARAMS]->appendValue($this->getFormDefaultParams());
 }
コード例 #3
0
ファイル: AItem.php プロジェクト: kingsj/core
 /**
  * Called before the includeCompiledFile()
  *
  * @return void
  */
 protected function initView()
 {
     parent::initView();
     $this->widgetParams[self::PARAM_FORM_PARAMS]->appendValue(array('cart_id' => $this->getParam(self::PARAM_ITEM)->getItemId()));
 }
コード例 #4
0
ファイル: AverageRating.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Called before the includeCompiledFile()
  *
  * @return void
  */
 protected function initView()
 {
     parent::initView();
     $this->widgetParams[self::PARAM_FORM_PARAMS]->appendValue(array(self::PARAM_PRODUCT_ID => $this->getParam(static::PARAM_PRODUCT_ID), self::PARAM_TARGET_WIDGET => $this->getParam(static::PARAM_TARGET_WIDGET)));
 }