예제 #1
0
파일: Role.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Add part to the location nodes list
  *
  * @return void
  */
 protected function addBaseLocation()
 {
     $this->addLocationNode('Roles', \XLite\Core\Converter::buildUrl('roles'));
 }
예제 #2
0
파일: Tab.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Get create entity URL
  *
  * @return string
  */
 protected function getCreateURL()
 {
     return \XLite\Core\Converter::buildUrl('product', '', array('page' => 'tabs', 'tab_id' => 0, 'product_id' => \XLite\Core\Request::getInstance()->product_id));
 }
예제 #3
0
 /**
  * Get create entity URL
  *
  * @return string
  */
 protected function getCreateURL()
 {
     return \XLite\Core\Converter::buildUrl('category', null, array('parent' => $this->getCategory()->getCategoryId()));
 }
예제 #4
0
파일: Page.php 프로젝트: kingsj/core
 /**
  * Get create entity URL
  *
  * @return string
  */
 protected function getCreateURL()
 {
     return \XLite\Core\Converter::buildUrl('page');
 }
예제 #5
0
 /**
  * Get create entity URL
  *
  * @return string
  */
 protected function getCreateURL()
 {
     return \XLite\Core\Converter::buildUrl('profile', null, array('mode' => 'register'));
 }
예제 #6
0
 /**
  * Get callback URL
  *
  * @param string $xpcBackReference Reference between X-Payments payment and X-Cart transaction
  * @param bool $forZeroAuth Call back for zero auth or regular order
  *
  * @return string
  */
 public static function getCallbackUrl($xpcBackReference)
 {
     if (!$forZeroAuth) {
         // Order callback
         $url = \XLite\Core\Converter::buildUrl('callback', 'callback', array('xpcBackReference' => $xpcBackReference), \XLite::getCustomerScript());
     } else {
         // Add new card callback
         $url = \XLite\Core\Converter::buildUrl('callback', 'callback', array('xpcBackReference' => $xpcBackReference, 'for_zero_auth' => '1'), \XLite::getCustomerScript());
     }
     return \XLite::getInstance()->getShopUrl($url);
 }
예제 #7
0
파일: Coupon.php 프로젝트: kewaunited/xcart
 /**
  * Add part to the location nodes list
  *
  * @return void
  */
 protected function addBaseLocation()
 {
     $this->addLocationNode('Promotions', \XLite\Core\Converter::buildUrl('promotions'));
     $this->addLocationNode('Coupons', \XLite\Core\Converter::buildUrl('promotions', '', array('page' => \XLite\Controller\Admin\Promotions::PAGE_COUPONS)));
 }
예제 #8
0
파일: AAdmin.php 프로젝트: kingsj/core
 /**
  * Get create entity URL
  *
  * @return string
  */
 protected function getCreateURL()
 {
     return \XLite\Core\Converter::buildUrl('add_product');
 }
예제 #9
0
파일: Rate.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Get create entity URL
  *
  * @return string
  */
 protected function getCreateURL()
 {
     return \XLite\Core\Converter::buildUrl('vat_sales_rate');
 }
예제 #10
0
 /**
  * Get create entity URL
  *
  * @return string
  */
 protected function getCreateURL()
 {
     return \XLite\Core\Converter::buildUrl('volume_discounts');
 }
예제 #11
0
 /**
  * JS code to redirect back to saved cards page
  *
  * @return string 
  */
 protected function getRediectCode(\XLite\Model\Profile $profile)
 {
     $url = \XLite::getInstance()->getShopUrl(\XLite\Core\Converter::buildUrl('saved_cards', '', array('profile_id' => $profile->getProfileId()), $profile->getPendingZeroAuthInterface()));
     return '<script type="text/javascript">' . 'window.parent.location = "' . $url . '";' . '</script>';
 }
예제 #12
0
 /**
  * Get create entity URL
  *
  * @return string
  */
 protected function getCreateURL()
 {
     return \XLite\Core\Converter::buildUrl('attribute_group');
 }
예제 #13
0
 /**
  * Get create entity URL
  *
  * @return string
  */
 protected function getCreateURL()
 {
     return \XLite\Core\Converter::buildUrl('membership');
 }