1079 lines
57 KiB
HTML
1079 lines
57 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
|
<title>Ryzom Account Management System: Ticket Class Reference</title>
|
||
|
|
||
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||
|
|
||
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="jquery.js"></script>
|
||
|
<script type="text/javascript" src="search/search.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="top"><!-- do not remove this div! -->
|
||
|
|
||
|
|
||
|
<div id="titlearea">
|
||
|
<table cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr style="height: 56px;">
|
||
|
|
||
|
|
||
|
<td style="padding-left: 0.5em;">
|
||
|
<div id="projectname">Ryzom Account Management System
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<!-- Generated by Doxygen 1.7.6.1 -->
|
||
|
<script type="text/javascript">
|
||
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||
|
</script>
|
||
|
<div id="navrow1" class="tabs">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
<li><a href="dirs.html"><span>Directories</span></a></li>
|
||
|
<li>
|
||
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
||
|
<span class="left">
|
||
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
alt=""/>
|
||
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
||
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
||
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
||
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
||
|
</span><span class="right">
|
||
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div id="navrow2" class="tabs2">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||
|
<li><a href="classes.html"><span>Class Index</span></a></li>
|
||
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="header">
|
||
|
<div class="summary">
|
||
|
<a href="#pub-methods">Public Member Functions</a> |
|
||
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
||
|
<a href="#pri-attribs">Private Attributes</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">Ticket Class Reference</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
<!-- doxytag: class="Ticket" -->
|
||
|
<p>class that handles most ticket related functions.
|
||
|
<a href="classTicket.html#details">More...</a></p>
|
||
|
|
||
|
<p><a href="classTicket-members.html">List of all members.</a></p>
|
||
|
<table class="memberdecls">
|
||
|
<tr><td colspan="2"><h2><a name="pub-methods"></a>
|
||
|
Public Member Functions</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a83aa76a51e7a7263f0d919500321daec">__construct</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">A constructor. <a href="#a83aa76a51e7a7263f0d919500321daec"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a1e87f173b2cba0916092865c842c1075">set</a> ($values)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">sets the object's attributes. <a href="#a1e87f173b2cba0916092865c842c1075"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a16156b509b1da77e551c64809e0187a4">create</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">creates a new 'ticket' entry. <a href="#a16156b509b1da77e551c64809e0187a4"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a015b73c7de955bbf6991f1345d91eecf">load_With_TId</a> ($id)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">loads the object's attributes. <a href="#a015b73c7de955bbf6991f1345d91eecf"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f834700b722501738b5c20c1cb1e719"></a><!-- doxytag: member="Ticket::update" ref="a4f834700b722501738b5c20c1cb1e719" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a4f834700b722501738b5c20c1cb1e719">update</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">update the objects attributes to the db. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#ab5b11fd2cf66eac9f6b148795c021dee">hasInfo</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">check if a ticket has a ticket_info page or not. <a href="#ab5b11fd2cf66eac9f6b148795c021dee"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af899c5b8fce8abbc88691e37b02e47ef"></a><!-- doxytag: member="Ticket::getTId" ref="af899c5b8fce8abbc88691e37b02e47ef" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#af899c5b8fce8abbc88691e37b02e47ef">getTId</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get tId attribute of the object. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe472e82afc5c7f7d289736ed8d81484"></a><!-- doxytag: member="Ticket::getTimestamp" ref="abe472e82afc5c7f7d289736ed8d81484" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#abe472e82afc5c7f7d289736ed8d81484">getTimestamp</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get timestamp attribute of the object in the format defined in the outputTime function of the Helperclass. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a488ce26f6e9a69de4d63883492b9d5b8"></a><!-- doxytag: member="Ticket::getTitle" ref="a488ce26f6e9a69de4d63883492b9d5b8" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a488ce26f6e9a69de4d63883492b9d5b8">getTitle</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get title attribute of the object. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af09548afeefddb6c2c258eb33a4cb5ca"></a><!-- doxytag: member="Ticket::getStatus" ref="af09548afeefddb6c2c258eb33a4cb5ca" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#af09548afeefddb6c2c258eb33a4cb5ca">getStatus</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get status attribute of the object. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a620f54bbc80d257dafec2d4c33019d1a"></a><!-- doxytag: member="Ticket::getStatusText" ref="a620f54bbc80d257dafec2d4c33019d1a" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a620f54bbc80d257dafec2d4c33019d1a">getStatusText</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get status attribute of the object in the form of text (string). <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab151edff1be8fe3f2e80227d49043493"></a><!-- doxytag: member="Ticket::getCategoryName" ref="ab151edff1be8fe3f2e80227d49043493" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#ab151edff1be8fe3f2e80227d49043493">getCategoryName</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get category attribute of the object in the form of text (string). <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa658a033e7c11f65f6e30e8d8c23d5c7"></a><!-- doxytag: member="Ticket::getQueue" ref="aa658a033e7c11f65f6e30e8d8c23d5c7" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#aa658a033e7c11f65f6e30e8d8c23d5c7">getQueue</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get queue attribute of the object. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a152f10aff0c29e859fda6a94ed41de41"></a><!-- doxytag: member="Ticket::getTicket_Category" ref="a152f10aff0c29e859fda6a94ed41de41" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a152f10aff0c29e859fda6a94ed41de41">getTicket_Category</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get ticket_category attribute of the object (int). <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa93ff96cd8be6ef2b9b27554ec344e53"></a><!-- doxytag: member="Ticket::getAuthor" ref="aa93ff96cd8be6ef2b9b27554ec344e53" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#aa93ff96cd8be6ef2b9b27554ec344e53">getAuthor</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get author attribute of the object (int). <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50f01c32532cb06451c2d3151e641287"></a><!-- doxytag: member="Ticket::getPriority" ref="a50f01c32532cb06451c2d3151e641287" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a50f01c32532cb06451c2d3151e641287">getPriority</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get priority attribute of the object (int). <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7c6c081ea47c3fe8e2d06ec84d01595"></a><!-- doxytag: member="Ticket::getPriorityText" ref="ab7c6c081ea47c3fe8e2d06ec84d01595" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#ab7c6c081ea47c3fe8e2d06ec84d01595">getPriorityText</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get priority attribute of the object in the form of text (string). <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a60fa0babd57b4fd86a2c1a466f2f0d67">getAssigned</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get the user assigned to the ticket. <a href="#a60fa0babd57b4fd86a2c1a466f2f0d67"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a33f1ce4b9efbd4a86af3253ceaab8bf6"></a><!-- doxytag: member="Ticket::getForwardedGroupName" ref="a33f1ce4b9efbd4a86af3253ceaab8bf6" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a33f1ce4b9efbd4a86af3253ceaab8bf6">getForwardedGroupName</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get the name of the support group to whom the ticket is forwarded or return 0 in case not forwarded. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b95696da230b5a73d066e0e319eec3a"></a><!-- doxytag: member="Ticket::getForwardedGroupId" ref="a0b95696da230b5a73d066e0e319eec3a" args="()" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a0b95696da230b5a73d066e0e319eec3a">getForwardedGroupId</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get the id of the support group to whom the ticket is forwarded or return 0 in case not forwarded. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#ae0612846bbef3918b8ce95fe7f0d677e">setTId</a> ($id)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set tId attribute of the object. <a href="#ae0612846bbef3918b8ce95fe7f0d677e"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a8496c014022175eb420071e61bfb3b6b">setTimestamp</a> ($ts)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set timestamp attribute of the object. <a href="#a8496c014022175eb420071e61bfb3b6b"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a873552a6011a56a75af7988e87e6f731">setTitle</a> ($t)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set title attribute of the object. <a href="#a873552a6011a56a75af7988e87e6f731"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a3728c830f27453c477146d86adb92436">setStatus</a> ($s)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set status attribute of the object. <a href="#a3728c830f27453c477146d86adb92436"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a01c96663844da94d9e1bfa087cf2bce0">setQueue</a> ($q)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set queue attribute of the object. <a href="#a01c96663844da94d9e1bfa087cf2bce0"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#aa53611afbc62ea031f9f2865a0d77721">setTicket_Category</a> ($tc)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set ticket_category attribute of the object. <a href="#aa53611afbc62ea031f9f2865a0d77721"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#aa906eb0d2cd7afa3ff8ba0afbf3537c7">setAuthor</a> ($a)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set author attribute of the object. <a href="#aa906eb0d2cd7afa3ff8ba0afbf3537c7"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a57bb563835bee337cbd87c77e94344c5">setPriority</a> ($p)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set priority attribute of the object. <a href="#a57bb563835bee337cbd87c77e94344c5"></a><br/></td></tr>
|
||
|
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
|
||
|
Static Public Member Functions</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a669c205f88c73c7857a5a2beb9a159ae">ticketExists</a> ($id)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">check if a ticket exists. <a href="#a669c205f88c73c7857a5a2beb9a159ae"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a58b91ffd0eed86af12ef8f418edb4199">getStatusArray</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">return an array of the possible statuses <a href="#a58b91ffd0eed86af12ef8f418edb4199"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#ab309a3fa2ac23bd6847bbf48cfc271d2">getPriorityArray</a> ()</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">return an array of the possible priorities <a href="#ab309a3fa2ac23bd6847bbf48cfc271d2"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#aab16857c573bbc275dbc47b5a193ef7a">getEntireTicket</a> ($id, $view_as_admin)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">return an entire ticket. <a href="#aab16857c573bbc275dbc47b5a193ef7a"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#ad7f9ba34b522a1fce4a0c7e9b7849b34">getTicketsOf</a> ($author)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">return all tickets of a specific user. <a href="#ad7f9ba34b522a1fce4a0c7e9b7849b34"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a3892155f3a6dd43880e2d8fab128b59c">create_Ticket</a> ($title, $content, $category, $author, $real_author, $for_support_group=0, $extra_info=0)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">function that creates a new ticket. <a href="#a3892155f3a6dd43880e2d8fab128b59c"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a10b96b8e6426201809f09cd35b251b28">updateTicketStatus</a> ($ticket_id, $newStatus, $author)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">updates the ticket's status. <a href="#a10b96b8e6426201809f09cd35b251b28"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a8b58a3d21d48f7295de71be30e740af8">updateTicketStatusAndPriority</a> ($ticket_id, $newStatus, $newPriority, $author)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">updates the ticket's status & priority. <a href="#a8b58a3d21d48f7295de71be30e740af8"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a36ca4b3d45286b8eca1fae7678c1c62c">getLatestReply</a> ($ticket_id)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">return the latest reply of a ticket <a href="#a36ca4b3d45286b8eca1fae7678c1c62c"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#acd9596d84d5fd0b68226269d6eff9cbb">createReply</a> ($content, $author, $ticket_id, $hidden)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">create a new reply for a ticket. <a href="#acd9596d84d5fd0b68226269d6eff9cbb"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#ab2653e3c80e3582c38c6845e6add6fac">assignTicket</a> ($user_id, $ticket_id)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">assign a ticket to a user. <a href="#ab2653e3c80e3582c38c6845e6add6fac"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a344f4b5e5ae5f1312c0647c6779bfc5c">unAssignTicket</a> ($user_id, $ticket_id)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">unassign a ticket of a user. <a href="#a344f4b5e5ae5f1312c0647c6779bfc5c"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#ada6fa74d4a6b5ce9d9e55b8f7398beb9">forwardTicket</a> ($user_id, $ticket_id, $group_id)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">forward a ticket to a specific support group. <a href="#ada6fa74d4a6b5ce9d9e55b8f7398beb9"></a><br/></td></tr>
|
||
|
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
|
||
|
Private Attributes</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8d2c0138844cb7225dcd6b7403d9a001"></a><!-- doxytag: member="Ticket::$tId" ref="a8d2c0138844cb7225dcd6b7403d9a001" args="" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a8d2c0138844cb7225dcd6b7403d9a001">$tId</a></td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The id of ticket. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac52a47a12cfbe87a9384a600eade0440"></a><!-- doxytag: member="Ticket::$timestamp" ref="ac52a47a12cfbe87a9384a600eade0440" args="" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#ac52a47a12cfbe87a9384a600eade0440">$timestamp</a></td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Timestamp of the ticket. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a49401c28cce1972efbe9208266e71dd3"></a><!-- doxytag: member="Ticket::$title" ref="a49401c28cce1972efbe9208266e71dd3" args="" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a49401c28cce1972efbe9208266e71dd3">$title</a></td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Title of the ticket. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e6917333bc2f16a9c12a44b1d12335e"></a><!-- doxytag: member="Ticket::$status" ref="a4e6917333bc2f16a9c12a44b1d12335e" args="" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a4e6917333bc2f16a9c12a44b1d12335e">$status</a></td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Status of the ticket (0 = waiting on user reply, 1 = waiting on support, (2= not used atm), 3 = closed. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ad011635a520888002255901cb7a2a5"></a><!-- doxytag: member="Ticket::$queue" ref="a5ad011635a520888002255901cb7a2a5" args="" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a5ad011635a520888002255901cb7a2a5">$queue</a></td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">(not in use atm) <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe4fc08f405ef045048cebaf16a3604d"></a><!-- doxytag: member="Ticket::$ticket_category" ref="abe4fc08f405ef045048cebaf16a3604d" args="" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#abe4fc08f405ef045048cebaf16a3604d">$ticket_category</a></td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">the id of the category belonging to the ticket <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a800d58b1adb950b389ed8170a8bf95ea"></a><!-- doxytag: member="Ticket::$author" ref="a800d58b1adb950b389ed8170a8bf95ea" args="" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a800d58b1adb950b389ed8170a8bf95ea">$author</a></td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The ticket_users id. <br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0ccc2e11515a6a15e46a0fcba94d0d79"></a><!-- doxytag: member="Ticket::$priority" ref="a0ccc2e11515a6a15e46a0fcba94d0d79" args="" -->
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classTicket.html#a0ccc2e11515a6a15e46a0fcba94d0d79">$priority</a></td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The priority of the ticket where 0 = low, 3= supadupahigh. <br/></td></tr>
|
||
|
</table>
|
||
|
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
||
|
<div class="textblock"><p>class that handles most ticket related functions. </p>
|
||
|
<p>the ticket class is used for most ticketing related functions, it also holds some wrapper functions. </p>
|
||
|
<dl class="author"><dt><b>Author:</b></dt><dd>Daan Janssens, mentored by Matthew Lagoe </dd></dl>
|
||
|
</div><hr/><h2>Constructor & Destructor Documentation</h2>
|
||
|
<a class="anchor" id="a83aa76a51e7a7263f0d919500321daec"></a><!-- doxytag: member="Ticket::__construct" ref="a83aa76a51e7a7263f0d919500321daec" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a83aa76a51e7a7263f0d919500321daec">Ticket::__construct</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>A constructor. </p>
|
||
|
<p>Empty constructor </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr/><h2>Member Function Documentation</h2>
|
||
|
<a class="anchor" id="ab2653e3c80e3582c38c6845e6add6fac"></a><!-- doxytag: member="Ticket::assignTicket" ref="ab2653e3c80e3582c38c6845e6add6fac" args="($user_id, $ticket_id)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#ab2653e3c80e3582c38c6845e6add6fac">Ticket::assignTicket</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>user_id</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>ticket_id</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>assign a ticket to a user. </p>
|
||
|
<p>Checks if the ticket exists, if so then it will try to assign the user to it, a log entry will be written about this. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$user_id</td><td>the id of user trying to be assigned to the ticket. </td></tr>
|
||
|
<tr><td class="paramname">$ticket_id</td><td>the id of the ticket that we try to assign to the user. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>SUCCESS_ASSIGNED, TICKET_NOT_EXISTING or ALREADY_ASSIGNED </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a16156b509b1da77e551c64809e0187a4"></a><!-- doxytag: member="Ticket::create" ref="a16156b509b1da77e551c64809e0187a4" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a16156b509b1da77e551c64809e0187a4">Ticket::create</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>creates a new 'ticket' entry. </p>
|
||
|
<p>this method will use the object's attributes for creating a new 'ticket' entry in the database. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a3892155f3a6dd43880e2d8fab128b59c"></a><!-- doxytag: member="Ticket::create_Ticket" ref="a3892155f3a6dd43880e2d8fab128b59c" args="($title, $content, $category, $author, $real_author, $for_support_group=0, $extra_info=0)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#a3892155f3a6dd43880e2d8fab128b59c">Ticket::create_Ticket</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>title</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>content</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>category</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>author</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>real_author</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>for_support_group</em> = <code>0</code>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>extra_info</em> = <code>0</code> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>function that creates a new ticket. </p>
|
||
|
<p>A new ticket will be created, in case the extra_info != 0 and the http request came from ingame, then a ticket_info page will be created. A log entry will be written, depending on the $real_authors value. In case the for_support_group parameter is set, the ticket will be forwarded immediately. Also the mail handler will create a new email that will be sent to the author to notify him that his ticket is freshly created. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$title</td><td>the title we want to give to the ticket. </td></tr>
|
||
|
<tr><td class="paramname">$content</td><td>the content we want to give to the starting post of the ticket. </td></tr>
|
||
|
<tr><td class="paramname">$category</td><td>the id of the category that should be related to the ticket. </td></tr>
|
||
|
<tr><td class="paramname">$author</td><td>the person who's id will be stored in the database as creator of the ticket. </td></tr>
|
||
|
<tr><td class="paramname">$real_author</td><td>should be the same id, or a moderator/admin who creates a ticket for another user (this is used for logging purposes). </td></tr>
|
||
|
<tr><td class="paramname">$for_support_group</td><td>in case you directly want to forward the ticket after creating it. (default value = 0 = don't forward) </td></tr>
|
||
|
<tr><td class="paramname">$extra_info</td><td>used for creating an ticket_info page related to the ticket, this only happens when the ticket is made ingame. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>the created tickets id. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="acd9596d84d5fd0b68226269d6eff9cbb"></a><!-- doxytag: member="Ticket::createReply" ref="acd9596d84d5fd0b68226269d6eff9cbb" args="($content, $author, $ticket_id, $hidden)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#acd9596d84d5fd0b68226269d6eff9cbb">Ticket::createReply</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>content</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>author</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>ticket_id</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>hidden</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>create a new reply for a ticket. </p>
|
||
|
<p>A reply will only be added if the content isn't empty and if the ticket isn't closed. The ticket creator will be notified by email that someone else replied on his ticket. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$content</td><td>the content of the reply </td></tr>
|
||
|
<tr><td class="paramname">$author</td><td>the author of the reply </td></tr>
|
||
|
<tr><td class="paramname">$ticket_id</td><td>the id of the ticket to which we want to add the reply. </td></tr>
|
||
|
<tr><td class="paramname">$hidden</td><td>boolean that specifies if the reply should only be shown to mods/admins or all users. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ada6fa74d4a6b5ce9d9e55b8f7398beb9"></a><!-- doxytag: member="Ticket::forwardTicket" ref="ada6fa74d4a6b5ce9d9e55b8f7398beb9" args="($user_id, $ticket_id, $group_id)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#ada6fa74d4a6b5ce9d9e55b8f7398beb9">Ticket::forwardTicket</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>user_id</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>ticket_id</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>group_id</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>forward a ticket to a specific support group. </p>
|
||
|
<p>Checks if the ticket exists, if so then it will try to forward the ticket to the support group specified, a log entry will be written about this. if no log entry should be written then the user_id should be 0, else te $user_id will be used in the log to specify who forwarded it. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$user_id</td><td>the id of user trying to forward the ticket. </td></tr>
|
||
|
<tr><td class="paramname">$ticket_id</td><td>the id of the ticket that we try to forward to a support group. </td></tr>
|
||
|
<tr><td class="paramname">$group_id</td><td>the id of the support group. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>SUCCESS_FORWARDED, TICKET_NOT_EXISTING or INVALID_SGROUP </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a60fa0babd57b4fd86a2c1a466f2f0d67"></a><!-- doxytag: member="Ticket::getAssigned" ref="a60fa0babd57b4fd86a2c1a466f2f0d67" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a60fa0babd57b4fd86a2c1a466f2f0d67">Ticket::getAssigned</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>get the user assigned to the ticket. </p>
|
||
|
<p>or return 0 in case not assigned. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="aab16857c573bbc275dbc47b5a193ef7a"></a><!-- doxytag: member="Ticket::getEntireTicket" ref="aab16857c573bbc275dbc47b5a193ef7a" args="($id, $view_as_admin)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#aab16857c573bbc275dbc47b5a193ef7a">Ticket::getEntireTicket</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>id</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>view_as_admin</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>return an entire ticket. </p>
|
||
|
<p>returns the ticket object and an array of all replies to that ticket. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$id</td><td>the id of the ticket. </td></tr>
|
||
|
<tr><td class="paramname">$view_as_admin</td><td>true if the viewer of the ticket is a mod, else false (depending on this it will also show the hidden comments) </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>an array containing the 'ticket_obj' and a 'reply_array', which is an array containing all replies to that ticket. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a36ca4b3d45286b8eca1fae7678c1c62c"></a><!-- doxytag: member="Ticket::getLatestReply" ref="a36ca4b3d45286b8eca1fae7678c1c62c" args="($ticket_id)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#a36ca4b3d45286b8eca1fae7678c1c62c">Ticket::getLatestReply</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>ticket_id</em></td><td>)</td>
|
||
|
<td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>return the latest reply of a ticket </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$ticket_id</td><td>the id of the ticket. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>a ticket_reply object. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ab309a3fa2ac23bd6847bbf48cfc271d2"></a><!-- doxytag: member="Ticket::getPriorityArray" ref="ab309a3fa2ac23bd6847bbf48cfc271d2" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#ab309a3fa2ac23bd6847bbf48cfc271d2">Ticket::getPriorityArray</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>return an array of the possible priorities </p>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>an array containing the string values that represent the different priorities. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a58b91ffd0eed86af12ef8f418edb4199"></a><!-- doxytag: member="Ticket::getStatusArray" ref="a58b91ffd0eed86af12ef8f418edb4199" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#a58b91ffd0eed86af12ef8f418edb4199">Ticket::getStatusArray</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>return an array of the possible statuses </p>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>an array containing the string values that represent the different statuses. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ad7f9ba34b522a1fce4a0c7e9b7849b34"></a><!-- doxytag: member="Ticket::getTicketsOf" ref="ad7f9ba34b522a1fce4a0c7e9b7849b34" args="($author)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#ad7f9ba34b522a1fce4a0c7e9b7849b34">Ticket::getTicketsOf</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>author</em></td><td>)</td>
|
||
|
<td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>return all tickets of a specific user. </p>
|
||
|
<p>an array of all tickets created by a specific user are returned by this function. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$author</td><td>the id of the user of whom we want all tickets from. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>an array containing all ticket objects related to a user. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ab5b11fd2cf66eac9f6b148795c021dee"></a><!-- doxytag: member="Ticket::hasInfo" ref="ab5b11fd2cf66eac9f6b148795c021dee" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#ab5b11fd2cf66eac9f6b148795c021dee">Ticket::hasInfo</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>check if a ticket has a ticket_info page or not. </p>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>true or false </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a015b73c7de955bbf6991f1345d91eecf"></a><!-- doxytag: member="Ticket::load_With_TId" ref="a015b73c7de955bbf6991f1345d91eecf" args="($id)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a015b73c7de955bbf6991f1345d91eecf">Ticket::load_With_TId</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>id</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>loads the object's attributes. </p>
|
||
|
<p>loads the object's attributes by giving a TId (ticket id). </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$id</td><td>the id of the ticket that should be loaded </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a1e87f173b2cba0916092865c842c1075"></a><!-- doxytag: member="Ticket::set" ref="a1e87f173b2cba0916092865c842c1075" args="($values)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a1e87f173b2cba0916092865c842c1075">Ticket::set</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>values</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>sets the object's attributes. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$values</td><td>should be an array of the form array('TId' => ticket_id, 'Title' => title, 'Status'=> status, 'Timestamp' => ts, 'Queue' => queue, '<a class="el" href="classTicket__Category.html" title="Class related to the ticket categories.">Ticket_Category</a>' => tc, 'Author' => author, 'Priority' => priority). </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="aa906eb0d2cd7afa3ff8ba0afbf3537c7"></a><!-- doxytag: member="Ticket::setAuthor" ref="aa906eb0d2cd7afa3ff8ba0afbf3537c7" args="($a)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#aa906eb0d2cd7afa3ff8ba0afbf3537c7">Ticket::setAuthor</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>a</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>set author attribute of the object. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$a</td><td>author of the ticket </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a57bb563835bee337cbd87c77e94344c5"></a><!-- doxytag: member="Ticket::setPriority" ref="a57bb563835bee337cbd87c77e94344c5" args="($p)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a57bb563835bee337cbd87c77e94344c5">Ticket::setPriority</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>p</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>set priority attribute of the object. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$p</td><td>priority of the ticket </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a01c96663844da94d9e1bfa087cf2bce0"></a><!-- doxytag: member="Ticket::setQueue" ref="a01c96663844da94d9e1bfa087cf2bce0" args="($q)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a01c96663844da94d9e1bfa087cf2bce0">Ticket::setQueue</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>q</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>set queue attribute of the object. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$q</td><td>queue of the ticket </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a3728c830f27453c477146d86adb92436"></a><!-- doxytag: member="Ticket::setStatus" ref="a3728c830f27453c477146d86adb92436" args="($s)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a3728c830f27453c477146d86adb92436">Ticket::setStatus</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>s</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>set status attribute of the object. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$s</td><td>status of the ticket(int) </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="aa53611afbc62ea031f9f2865a0d77721"></a><!-- doxytag: member="Ticket::setTicket_Category" ref="aa53611afbc62ea031f9f2865a0d77721" args="($tc)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#aa53611afbc62ea031f9f2865a0d77721">Ticket::setTicket_Category</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>tc</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>set ticket_category attribute of the object. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$tc</td><td>ticket_category id of the ticket(int) </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ae0612846bbef3918b8ce95fe7f0d677e"></a><!-- doxytag: member="Ticket::setTId" ref="ae0612846bbef3918b8ce95fe7f0d677e" args="($id)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#ae0612846bbef3918b8ce95fe7f0d677e">Ticket::setTId</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>id</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>set tId attribute of the object. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$id</td><td>integer id of the ticket </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a8496c014022175eb420071e61bfb3b6b"></a><!-- doxytag: member="Ticket::setTimestamp" ref="a8496c014022175eb420071e61bfb3b6b" args="($ts)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a8496c014022175eb420071e61bfb3b6b">Ticket::setTimestamp</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>ts</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>set timestamp attribute of the object. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$ts</td><td>timestamp of the ticket </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a873552a6011a56a75af7988e87e6f731"></a><!-- doxytag: member="Ticket::setTitle" ref="a873552a6011a56a75af7988e87e6f731" args="($t)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classTicket.html#a873552a6011a56a75af7988e87e6f731">Ticket::setTitle</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>t</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>set title attribute of the object. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$t</td><td>title of the ticket </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a669c205f88c73c7857a5a2beb9a159ae"></a><!-- doxytag: member="Ticket::ticketExists" ref="a669c205f88c73c7857a5a2beb9a159ae" args="($id)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#a669c205f88c73c7857a5a2beb9a159ae">Ticket::ticketExists</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>id</em></td><td>)</td>
|
||
|
<td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>check if a ticket exists. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$id</td><td>the id of the ticket to be checked. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the ticket exists, else false. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a344f4b5e5ae5f1312c0647c6779bfc5c"></a><!-- doxytag: member="Ticket::unAssignTicket" ref="a344f4b5e5ae5f1312c0647c6779bfc5c" args="($user_id, $ticket_id)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#a344f4b5e5ae5f1312c0647c6779bfc5c">Ticket::unAssignTicket</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>user_id</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>ticket_id</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>unassign a ticket of a user. </p>
|
||
|
<p>Checks if the ticket exists, if so then it will try to unassign the user of it, a log entry will be written about this. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$user_id</td><td>the id of user trying to be assigned to the ticket. </td></tr>
|
||
|
<tr><td class="paramname">$ticket_id</td><td>the id of the ticket that we try to assign to the user. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>SUCCESS_UNASSIGNED, TICKET_NOT_EXISTING or NOT_ASSIGNED </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a10b96b8e6426201809f09cd35b251b28"></a><!-- doxytag: member="Ticket::updateTicketStatus" ref="a10b96b8e6426201809f09cd35b251b28" args="($ticket_id, $newStatus, $author)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#a10b96b8e6426201809f09cd35b251b28">Ticket::updateTicketStatus</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>ticket_id</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>newStatus</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>author</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>updates the ticket's status. </p>
|
||
|
<p>A log entry about this will be created only if the newStatus is different from the current status. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$ticket_id</td><td>the id of the ticket of which we want to change the status. </td></tr>
|
||
|
<tr><td class="paramname">$newStatus</td><td>the new status value (integer) </td></tr>
|
||
|
<tr><td class="paramname">$author</td><td>the user (id) that performed the update status action </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a8b58a3d21d48f7295de71be30e740af8"></a><!-- doxytag: member="Ticket::updateTicketStatusAndPriority" ref="a8b58a3d21d48f7295de71be30e740af8" args="($ticket_id, $newStatus, $newPriority, $author)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classTicket.html#a8b58a3d21d48f7295de71be30e740af8">Ticket::updateTicketStatusAndPriority</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>ticket_id</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>newStatus</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>newPriority</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>author</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>updates the ticket's status & priority. </p>
|
||
|
<p>A log entry about this will be created only if the newStatus is different from the current status and also when the newPriority is different from the current priority. </p>
|
||
|
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000004">Todo:</a></b></dt><dd>break this function up into a updateStatus (already exists) and updatePriority function and perhaps write a wrapper function for the combo. </dd></dl>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$ticket_id</td><td>the id of the ticket of which we want to change the status & priority </td></tr>
|
||
|
<tr><td class="paramname">$newStatus</td><td>the new status value (integer) </td></tr>
|
||
|
<tr><td class="paramname">$newPriority</td><td>the new priority value (integer) </td></tr>
|
||
|
<tr><td class="paramname">$author</td><td>the user (id) that performed the update </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
||
|
<li>/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket.php</li>
|
||
|
</ul>
|
||
|
</div><!-- contents -->
|
||
|
<!-- window showing the filter options -->
|
||
|
<div id="MSearchSelectWindow"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Variables</a></div>
|
||
|
|
||
|
<!-- iframe showing the search results (closed by default) -->
|
||
|
<div id="MSearchResultsWindow">
|
||
|
<iframe src="javascript:void(0)" frameborder="0"
|
||
|
name="MSearchResults" id="MSearchResults">
|
||
|
</iframe>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<hr class="footer"/><address class="footer"><small>
|
||
|
Generated on Fri Sep 13 2013 00:20:37 for Ryzom Account Management System by  <a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||
|
</a> 1.7.6.1
|
||
|
</small></address>
|
||
|
|
||
|
</body>
|
||
|
</html>
|