當前位置: 首頁>>代碼示例>>PHP>>正文


PHP osC_Order::getCustomerID方法代碼示例

本文整理匯總了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';
     }
 }
開發者ID:heshuai64,項目名稱:gamestore,代碼行數:19,代碼來源:orders.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;
             }
         }
     }
 }
開發者ID:sajad1441,項目名稱:TomatoShop-v1,代碼行數:41,代碼來源:orders.php


注:本文中的osC_Order::getCustomerID方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。