本文整理汇总了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();
}
}
}