本文整理汇总了PHP中XLite\Core\Converter::buildUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Converter::buildUrl方法的具体用法?PHP Converter::buildUrl怎么用?PHP Converter::buildUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XLite\Core\Converter
的用法示例。
在下文中一共展示了Converter::buildUrl方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addBaseLocation
/**
* Add part to the location nodes list
*
* @return void
*/
protected function addBaseLocation()
{
$this->addLocationNode('Roles', \XLite\Core\Converter::buildUrl('roles'));
}
示例2: getCreateURL
/**
* 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: getCreateURL
/**
* Get create entity URL
*
* @return string
*/
protected function getCreateURL()
{
return \XLite\Core\Converter::buildUrl('category', null, array('parent' => $this->getCategory()->getCategoryId()));
}
示例4: getCreateURL
/**
* Get create entity URL
*
* @return string
*/
protected function getCreateURL()
{
return \XLite\Core\Converter::buildUrl('page');
}
示例5: getCreateURL
/**
* Get create entity URL
*
* @return string
*/
protected function getCreateURL()
{
return \XLite\Core\Converter::buildUrl('profile', null, array('mode' => 'register'));
}
示例6: getCallbackUrl
/**
* 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: addBaseLocation
/**
* 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: getRediectCode
/**
* 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>';
}