本文整理匯總了PHP中FabrikHelperHTML::emailSent方法的典型用法代碼示例。如果您正苦於以下問題:PHP FabrikHelperHTML::emailSent方法的具體用法?PHP FabrikHelperHTML::emailSent怎麽用?PHP FabrikHelperHTML::emailSent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FabrikHelperHTML
的用法示例。
在下文中一共展示了FabrikHelperHTML::emailSent方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: display
function display()
{
$model =& $this->getModel('form');
$post =& JRequest::get('post');
if (!array_key_exists('youremail', $post)) {
FabrikHelperHTML::emailForm($model);
} else {
$to = $template = '';
$this->sendMail($to);
FabrikHelperHTML::emailSent($to);
}
}
示例2: display
function display()
{
FabrikHelperHTML::framework();
$model = JModel::getInstance('form', 'FabrikFEModel');
$post = JRequest::get('post');
if (!array_key_exists('youremail', $post)) {
FabrikHelperHTML::emailForm($model);
} else {
$to = $template = '';
$ok = $this->sendMail($to);
FabrikHelperHTML::emailSent($to, $ok);
}
}
示例3: display
/**
* Display
*
* @param string $tpl Template
*
* @return void
*/
public function display($tpl = null)
{
$srcs = FabrikHelperHTML::framework();
FabrikHelperHTML::script($srcs);
$model = JModelLegacy::getInstance('form', 'FabrikFEModel');
$app = JFactory::getApplication();
$input = $app->input;
if (!$input->get('youremail', false)) {
FabrikHelperHTML::emailForm($model);
} else {
$to = $template = '';
$ok = $this->sendMail($to);
FabrikHelperHTML::emailSent($to, $ok);
}
}
示例4: display
/**
* Display
*
* @param string $tpl Template
*
* @return void
*/
public function display($tpl = null)
{
FabrikHelperHTML::framework();
$input = $this->app->input;
$model = $this->getModel('form');
$filter = JFilterInput::getInstance();
$post = $filter->clean($_POST, 'array');
if (!array_key_exists('youremail', $post)) {
FabrikHelperHTML::emailForm($model);
} else {
$to = $input->getString('email', '');
if ($this->sendMail($to)) {
$this->app->enqueueMessage(FText::_('COM_FABRIK_THIS_ITEM_HAS_BEEN_SENT_TO') . ' ' . $to, 'success');
}
FabrikHelperHTML::emailSent();
}
}