/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $result = parent::getDefaultParams(); $result['target'] = \XLite\Core\Request::getInstance()->target; $result['action'] = 'modify'; return $result; }
/** * Return list of the form default parameters * * @return array */ protected function getDefaultParams() { $params = parent::getDefaultParams(); $params['order_id'] = $this->getOrder()->getOrderId(); // get order ID (from controller) return $params; }
/** * Return list of the form default parameters * * @return array */ protected function getDefaultParams() { $list = parent::getDefaultParams(); $list['atype'] = \XLite\Core\Request::getInstance()->atype; $list['addressId'] = $this->getCurrentAddressId(); return $list; }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $result = parent::getDefaultParams(); $url = $this->getReturnURL(); if ($url) { $result['returnURL'] = $url; } return $result; }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $result = parent::getDefaultParams(); $profileId = $this->getCurrentForm()->getRequestProfileId(); if ($profileId) { $result['profile_id'] = $profileId; } return $result; }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $list = parent::getDefaultParams(); $list['method_id'] = $this->getPaymentMethodId(); if (\XLite\Core\Request::getInstance()->just_added) { $list['just_added'] = 1; } return $list; }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $result = parent::getDefaultParams(); $orderNumber = $this->getOrder()->getOrderNumber(); if ($orderNumber) { $result['order_number'] = $orderNumber; } return $result; }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $result = parent::getDefaultParams(); $addressId = $this->getCurrentForm()->getRequestAddressId(); if ($addressId) { $result['address_id'] = $addressId; } else { $profileId = $this->getCurrentForm()->getRequestProfileId(); if ($profileId) { $result['profile_id'] = $profileId; } } $result[\XLite\Controller\AController::RETURN_URL] = $this->buildURL('address_book'); return $result; }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $result = parent::getDefaultParams(); $result['target'] = \XLite\Core\Request::getInstance()->target; $result['action'] = 'save'; $addressId = $this->getCurrentForm()->getRequestAddressId(); if ($addressId) { $result['address_id'] = $addressId; } else { $profileId = $this->getCurrentForm()->getRequestProfileId(); if ($profileId) { $result['profile_id'] = $profileId; } } return $result; }
/** * Return list of the form default parameters * * @return array */ protected function getDefaultParams() { return array_merge(parent::getDefaultParams(), array(\XLite\View\Pager\Admin\Module\AModule::PARAM_CLEAR_PAGER => 1)); }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { return parent::getDefaultParams() + array('mode' => 'search'); }
/** * Return list of the form default parameters * * @return array */ protected function getDefaultParams() { $result = parent::getDefaultParams(); $result['order_id'] = $this->getCurrentForm()->getOrderId(); return $result; }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $list = parent::getDefaultParams(); $list['zone_id'] = $this->getZoneId(); return $list; }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $list = parent::getDefaultParams(); return $list; }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { return parent::getDefaultParams() + array('product_id' => \XLite\Core\Request::getInstance()->product_id); }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { return parent::getDefaultParams() + array('profileId' => $this->getCondition('profileId')); }
/** * getDefaultParams * * @return array */ protected function getDefaultParams() { $list = parent::getDefaultParams(); $list['widget'] = 'XLite\\Module\\XC\\PitneyBowes\\View\\CredentialsRequest'; return $list; }
/** * Get default params * * @return array */ protected function getDefaultParams() { $result = parent::getDefaultParams(); $result['category_id'] = $this->getCategory()->getCategoryId(); return $result; }