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


PHP oxConfig::getRequestParameter方法代碼示例

本文整理匯總了PHP中oxConfig::getRequestParameter方法的典型用法代碼示例。如果您正苦於以下問題:PHP oxConfig::getRequestParameter方法的具體用法?PHP oxConfig::getRequestParameter怎麽用?PHP oxConfig::getRequestParameter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在oxConfig的用法示例。


在下文中一共展示了oxConfig::getRequestParameter方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: sendMail

 public function sendMail()
 {
     /** @var oxEmail $oEmail */
     $oEmail = oxNew('oxEmail');
     $oUser = $this->getUser();
     $aPost = $this->_oConf->getRequestParameter('editval');
     $blPrepareSuccessful = false;
     switch ($aPost['template']) {
         case 'order_cust':
             $blPrepareSuccessful = $oEmail->sendDummyOrderEmailToUser();
             break;
         case 'order_owner':
             $blPrepareSuccessful = $oEmail->sendDummyOrderEmailToOwner();
             break;
         case 'forgotpwd':
             $blPrepareSuccessful = $oEmail->sendDummyForgotPwdEmail();
             break;
         case 'invite':
             $blPrepareSuccessful = $oEmail->sendDummyInviteMail();
             break;
         case 'newsletteroptin':
             $blPrepareSuccessful = $oEmail->sendDummyNewsletterDbOptInMail();
             break;
         case 'ordershipped':
             $blPrepareSuccessful = $oEmail->sendDummySendedNowMail();
             break;
         case 'owner_reminder':
             $blPrepareSuccessful = $oEmail->sendDummyStockReminder();
             break;
         case 'pricealarm_owner':
             $blPrepareSuccessful = $oEmail->sendDummyPriceAlarmNotification();
             break;
         case 'register':
             $blPrepareSuccessful = $oEmail->sendDummyRegisterEmail();
             break;
         case 'senddownloadlinks':
             $blPrepareSuccessful = $oEmail->sendDummyDownloadLinksMail();
             break;
         case 'suggest':
             $blPrepareSuccessful = $oEmail->sendDummySuggestMail();
             break;
         case 'wishlist':
             $blPrepareSuccessful = $oEmail->sendDummyWishlistMail();
             break;
     }
     // set Attachments
     $this->_aAttachments = $oEmail->getAttachments();
     if ($blPrepareSuccessful) {
         if (isset($aPost['html_preview']) || isset($aPost['plain_preview']) || isset($aPost['preview'])) {
             if (isset($aPost['iframe'])) {
                 if ($aPost['preview'] == 'html') {
                     echo $oEmail->getBody();
                 } else {
                     echo '<pre>';
                     echo $oEmail->getAltBody();
                     echo '</pre>';
                 }
                 exit;
             }
         } else {
             $sFullName = $oUser->oxuser__oxfname->getRawValue() . " " . $oUser->oxuser__oxlname->getRawValue();
             $oEmail->setRecipient($aPost['receiver'], $sFullName);
             $oEmail->send();
         }
     }
 }
開發者ID:suabo,項目名稱:dd_email_debugger,代碼行數:66,代碼來源:dd_email_debugger.php


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