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