本文整理汇总了PHP中osC_Order::getCustomerID方法的典型用法代码示例。如果您正苦于以下问题:PHP osC_Order::getCustomerID方法的具体用法?PHP osC_Order::getCustomerID怎么用?PHP osC_Order::getCustomerID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类osC_Order
的用法示例。
在下文中一共展示了osC_Order::getCustomerID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: osC_Account_Orders
function osC_Account_Orders()
{
global $osC_Services, $osC_Language, $osC_Customer, $osC_Breadcrumb;
$this->_page_title = $osC_Language->get('orders_heading');
$osC_Language->load('order');
if ($osC_Services->isStarted('breadcrumb')) {
$osC_Breadcrumb->add($osC_Language->get('breadcrumb_my_orders'), osc_href_link(FILENAME_ACCOUNT, $this->_module, 'SSL'));
if (is_numeric($_GET[$this->_module])) {
$osC_Breadcrumb->add(sprintf($osC_Language->get('breadcrumb_order_information'), $_GET[$this->_module]), osc_href_link(FILENAME_ACCOUNT, $this->_module . '=' . $_GET[$this->_module], 'SSL'));
}
}
if (is_numeric($_GET[$this->_module])) {
if (osC_Order::getCustomerID($_GET[$this->_module]) !== $osC_Customer->getID()) {
osc_redirect(osc_href_link(FILENAME_ACCOUNT, $this->_module, 'SSL'));
}
$this->_page_title = sprintf($osC_Language->get('order_information_heading'), $_GET[$this->_module]);
$this->_page_contents = 'account_history_info.php';
}
}
示例2: osC_Account_Orders
function osC_Account_Orders()
{
global $osC_Services, $osC_Language, $osC_Customer, $breadcrumb, $returns_orders;
$this->_page_title = $osC_Language->get('orders_heading');
$osC_Language->load('order');
if ($osC_Services->isStarted('breadcrumb')) {
$breadcrumb->add($osC_Language->get('breadcrumb_my_orders'), osc_href_link(FILENAME_ACCOUNT, $this->_module, 'SSL'));
if (is_numeric($_REQUEST[$this->_module])) {
$breadcrumb->add(sprintf($osC_Language->get('breadcrumb_order_information'), $_REQUEST[$this->_module]), osc_href_link(FILENAME_ACCOUNT, $this->_module . '=' . $_REQUEST[$this->_module], 'SSL'));
}
}
if (is_numeric($_GET[$this->_module])) {
if (osC_Order::getCustomerID($_GET[$this->_module]) !== $osC_Customer->getID()) {
osc_redirect(osc_href_link(FILENAME_ACCOUNT, $this->_module, 'SSL'));
}
$this->_page_title = sprintf($osC_Language->get('order_information_heading'), $_GET[$this->_module]);
$this->_page_contents = 'account_history_info.php';
} else {
if (!empty($_GET[$this->_module])) {
switch ($_GET[$this->_module]) {
case 'list_return_requests':
$this->_page_title = $osC_Language->get('orders_returns_heading');
$this->_page_contents = 'return_requests_history.php';
break;
case 'list_credit_slips':
$this->_page_title = $osC_Language->get('credit_slips_heading');
$this->_page_contents = 'credit_slips_history.php';
break;
case 'new_return_request':
$this->_page_title = sprintf($osC_Language->get('orders_returns_information_heading'), $_GET['orders_id']);
$this->_page_contents = 'return_request_process.php';
break;
case 'save_return_request':
$this->_page_title = sprintf($osC_Language->get('orders_returns_information_heading'), $_GET['orders_id']);
$this->_page_contents = 'return_request_process.php';
$this->_save_orders_returns();
break;
}
}
}
}