本文整理匯總了PHP中FSS_Helper::enqueueMessage方法的典型用法代碼示例。如果您正苦於以下問題:PHP FSS_Helper::enqueueMessage方法的具體用法?PHP FSS_Helper::enqueueMessage怎麽用?PHP FSS_Helper::enqueueMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FSS_Helper
的用法示例。
在下文中一共展示了FSS_Helper::enqueueMessage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: doOpenTicket
//.........這裏部分代碼省略.........
if (count($this->products) == 1) {
$prodid = $this->products[0]['id'];
JRequest::setVar('prodid', $prodid);
//echo "Setting prodid to $prodid<br>";
}
}
}
$this->assign('prodid', $prodid);
$deptid = FSS_Input::getInt('deptid');
// dept id not set, should we display department list?
if ($deptid < 1) {
$this->search = "";
$this->depts = $this->get('Departments');
$this->limit = $this->get("ProdLimit");
if (count($this->depts) > 1) {
$this->pagination = $this->get('DeptPagination');
$this->product = $this->get('Product');
parent::display("department");
return;
} else {
if (count($this->depts) == 1) {
$deptid = $this->depts[0]['id'];
JRequest::setVar('deptid', $deptid);
//echo "Setting deptid to $deptid<br>";
}
}
}
$what = FSS_Input::getCmd('what');
// done with ticket, try and save, if not, display any errors
if ($what == "add") {
if ($this->saveTicket()) {
$message = FSS_Helper::HelpText("support_open_thanks", true);
if ($message != "") {
FSS_Helper::enqueueMessage($message, "success");
}
//exit;
if ($this->admin_create > 0) {
$link = 'index.php?option=com_fss&view=admin_support&Itemid=' . FSS_Input::getInt('Itemid', '') . '&ticketid=' . $this->ticketid;
$mainframe->redirect(FSSRoute::_($link, false));
} else {
// need to set the session info that will display the ticket to the user here!
$link = 'index.php?option=com_fss&view=ticket&layout=view&Itemid=' . FSS_Input::getInt('Itemid', '') . '&ticketid=' . $this->ticketid;
$mainframe->redirect(FSSRoute::_($link, false));
}
return;
} else {
//echo "Error saving ticket<br>";
}
}
// load handlers if required. This depends on what product and department have been selected
if (FSS_Settings::get('support_choose_handler') != "none") {
$allow_no_auto = 0;
if ($this->admin_create > 0) {
$allow_no_auto = 1;
$this->autohandlers = SupportUsers::getHandlersTicket($prodid, $deptid, 0);
}
$handlers = SupportUsers::getHandlersTicket($prodid, $deptid, 0, $allow_no_auto);
/**
* I DONT KNOW IF THIS IS A GOOD CHANGE OR NOT, BUT IT MAKES IT CONSISTANT EVERYWHERE I THINK
**/
// if the hide super users checkbox is tickets, hide them all from the dropdown
if (FSS_Settings::get('support_hide_super_users')) {
foreach ($handlers as $offset => $handler) {
$fssuser = SupportUsers::getUser($handler);
$juser = JFactory::getUser($handler);
if ($juser->get('isRoot') && $userid != $juser->id) {