См. определение в файле sale/lib/helpers/order.php строка 9
◆ getPublicLink()
Return link to order for an unauthorized users.
- Аргументы
-
- Возвращает
- string
- Исключения
-
См. определение в файле sale/lib/helpers/order.php строка 35
38 $scheme = $context->getRequest()->isHttps() ?
'https' :
'http';
39 $siteData = SiteTable::getList(array(
40 'filter' => array(
'LID' => $order->getSiteId()),
42 $site = $siteData->fetch();
44 $paths = unserialize(
Option::get(
"sale",
"allow_guest_order_view_paths"));
45 $path = htmlspecialcharsbx($paths[$site[
'LID']]);
47 if (isset($path) && mb_strpos($path,
'#order_id#'))
49 $accountNumber = urlencode(urlencode($order->getField(
'ACCOUNT_NUMBER')));
50 $path = str_replace(
'#order_id#', $accountNumber,$path);
51 if (mb_strpos($path,
'/') !== 0)
56 $path .= (mb_strpos($path,
'?')) ?
'&' :
"?";
57 $path .=
"access=".$order->getHash();
64 return $scheme.
'://'.$site[
'SERVER_NAME'].$path;
static getInstance()
Returns current instance of the Application.
static get($moduleId, $name, $default="", $siteId=false)
Returns a value of an option.
◆ isAllowGuestView()
Check ability to view order is not an authorized user.
- Аргументы
-
- Возвращает
- bool
- Исключения
-
См. определение в файле sale/lib/helpers/order.php строка 19
21 $guestStatuses =
Option::get(
"sale",
"allow_guest_order_view_status",
"");
22 $guestStatuses = ($guestStatuses <>
'') ? unserialize($guestStatuses) : array();
23 return (is_array($guestStatuses) && in_array($order->getField(
'STATUS_ID'), $guestStatuses) &&
Option::get(
"sale",
"allow_guest_order_view") ===
'Y');
Объявления и описания членов класса находятся в файле: