当前位置: 首页>>代码示例>>PHP>>正文


PHP FSS_Helper::NoPerm方法代码示例

本文整理汇总了PHP中FSS_Helper::NoPerm方法的典型用法代码示例。如果您正苦于以下问题:PHP FSS_Helper::NoPerm方法的具体用法?PHP FSS_Helper::NoPerm怎么用?PHP FSS_Helper::NoPerm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FSS_Helper的用法示例。


在下文中一共展示了FSS_Helper::NoPerm方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 function display($tpl = null)
 {
     if (FSS_Settings::Get('support_only_admin_open')) {
         return $this->noPermission("Access Denied", "CREATING_NEW_TICKETS_BY_USERS_IS_CURRENTLY_DISABLED");
     }
     if (!FSS_Permission::auth("fss.ticket.open", "com_fss.support_user")) {
         return FSS_Helper::NoPerm();
     }
     $mainframe = JFactory::getApplication();
     $user = JFactory::getUser();
     $userid = $user->get('id');
     $this->assign('userid', $userid);
     $this->assign('email', '');
     // defaults for blank ticket
     $this->ticket = new stdClass();
     $this->ticket->prodid = FSS_Input::getInt('prodid');
     $this->ticket->deptid = FSS_Input::getInt('deptid');
     $this->ticket->catid = FSS_Input::getInt('catid');
     $this->ticket->priid = FSS_Input::getInt('priid');
     $this->ticket->subject = FSS_Input::getString('subject');
     $this->ticket->body = FSS_Input::getBBCode('body');
     $this->errors['subject'] = '';
     $this->errors['body'] = '';
     $this->errors['cat'] = '';
     $what = FSS_Input::getCmd('what');
     // done with ticket, try and save, if not, display any errors
     if ($what == "add") {
         if ($this->saveTicket()) {
             echo "Saved OK!";
             exit;
             $link = 'index.php?option=com_fss&view=ticket&layout=view&Itemid=' . FSS_Input::getInt('Itemid') . '&ticketid=' . $this->ticketid;
             $mainframe->redirect($link);
             return;
         }
     }
     $this->product = $this->get('Product');
     $this->dept = $this->get('Department');
     $this->cats = SupportHelper::getCategories();
     $this->pris = SupportHelper::getPriorities();
     $this->support_user_attach = FSS_Settings::get('support_user_attach');
     $this->fields = FSSCF::GetCustomFields(0, $prodid, $deptid);
     parent::display();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:43,代码来源:view.html.php

示例2: doDisplayTicket

 function doDisplayTicket()
 {
     if (!FSS_Permission::auth("fss.ticket.view", "com_fss.support_user")) {
         return FSS_Helper::NoPerm();
     }
     if (!$this->GetTicket()) {
         return;
     }
     $this->readonly = false;
     SupportSource::doUser_View_Redirect($this->ticket);
     $this->redirectMergedTickets();
     $this->getCCInfo();
     // update lang code on ticket
     $lang = JFactory::getLanguage()->getTag();
     $db = JFactory::getDBO();
     $qry = "UPDATE #__fss_ticket_ticket SET lang = '" . FSSJ3Helper::getEscaped($db, $lang) . "' WHERE id = " . $this->ticket['id'];
     $db->setQuery($qry);
     $db->Query();
     $what = FSS_Input::getCmd('what');
     if ($what == "print") {
         return parent::display("print");
     }
     $this->FixTicketStatus();
     FSS_Helper::IncludeModal();
     parent::display();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:26,代码来源:view.html.php


注:本文中的FSS_Helper::NoPerm方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。