mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 01:18:46 +00:00
343 lines
18 KiB
HTML
343 lines
18 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: Querycache 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="#pri-attribs">Private Attributes</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">Querycache Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<!-- doxytag: class="Querycache" -->
|
|
<p>class for storing changes when shard is offline.
|
|
<a href="classQuerycache.html#details">More...</a></p>
|
|
|
|
<p><a href="classQuerycache-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="classQuerycache.html#a7ddcdec027091f50d8009adfc6b44ec4">__construct</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">A constructor. <a href="#a7ddcdec027091f50d8009adfc6b44ec4"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a0c711df493c72eb461241855f9f34c5f">set</a> ($values)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">sets the object's attributes. <a href="#a0c711df493c72eb461241855f9f34c5f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a579edcc576b076f884884cf509436768">load_With_SID</a> ($id)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">loads the object's attributes. <a href="#a579edcc576b076f884884cf509436768"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5840a78a238aeccc749f9e76fd9bfcde"></a><!-- doxytag: member="Querycache::update" ref="a5840a78a238aeccc749f9e76fd9bfcde" args="()" -->
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a5840a78a238aeccc749f9e76fd9bfcde">update</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">updates the entry. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad090d4d9a422540e8f93d1480d811c57"></a><!-- doxytag: member="Querycache::getSID" ref="ad090d4d9a422540e8f93d1480d811c57" args="()" -->
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#ad090d4d9a422540e8f93d1480d811c57">getSID</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get SID attribute of the object. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e833722f16d96f44c0d887f4e833bcf"></a><!-- doxytag: member="Querycache::getType" ref="a3e833722f16d96f44c0d887f4e833bcf" args="()" -->
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a3e833722f16d96f44c0d887f4e833bcf">getType</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get type attribute of the object. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75b6539cc93eed689f4c34cf3140684f"></a><!-- doxytag: member="Querycache::getQuery" ref="a75b6539cc93eed689f4c34cf3140684f" args="()" -->
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a75b6539cc93eed689f4c34cf3140684f">getQuery</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get query attribute of the object. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7d8e4258fc22338afe76c5ca0487588"></a><!-- doxytag: member="Querycache::getDb" ref="ab7d8e4258fc22338afe76c5ca0487588" args="()" -->
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#ab7d8e4258fc22338afe76c5ca0487588">getDb</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">get db attribute of the object. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a7a4b7276270a9df57f7a5cc920fe5edc">setSID</a> ($s)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set SID attribute of the object. <a href="#a7a4b7276270a9df57f7a5cc920fe5edc"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#ac4a9fb03e63f009d57045c1c23adf550">setType</a> ($t)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set type attribute of the object. <a href="#ac4a9fb03e63f009d57045c1c23adf550"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a6e2e369125270695466baf423ae62ad2">setQuery</a> ($q)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set query attribute of the object. <a href="#a6e2e369125270695466baf423ae62ad2"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a26331885b240e1ac6cd3b8409f6787d2">setDb</a> ($d)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">set db attribute of the object. <a href="#a26331885b240e1ac6cd3b8409f6787d2"></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="a30393f88b13bfd390c76cc94454b123e"></a><!-- doxytag: member="Querycache::$SID" ref="a30393f88b13bfd390c76cc94454b123e" args="" -->
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a30393f88b13bfd390c76cc94454b123e">$SID</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The queries ID. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a299788dde0e69545f3e0199132f013d2"></a><!-- doxytag: member="Querycache::$type" ref="a299788dde0e69545f3e0199132f013d2" args="" -->
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a299788dde0e69545f3e0199132f013d2">$type</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The type of query. <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6be0975d09b713fdacc2e32330d30c74"></a><!-- doxytag: member="Querycache::$query" ref="a6be0975d09b713fdacc2e32330d30c74" args="" -->
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a6be0975d09b713fdacc2e32330d30c74">$query</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The query itself (json encoded) <br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a781742cc162f5714e15c7ef7dc30ebb2"></a><!-- doxytag: member="Querycache::$db" ref="a781742cc162f5714e15c7ef7dc30ebb2" args="" -->
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classQuerycache.html#a781742cc162f5714e15c7ef7dc30ebb2">$db</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">the db where the query should be performed <br/></td></tr>
|
|
</table>
|
|
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
|
<div class="textblock"><p>class for storing changes when shard is offline. </p>
|
|
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>make sure that the querycache class is being used by the sync class and also for inserting the queries themselfs into it. Atm this class isn't used yet if I remember correctly </dd></dl>
|
|
<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="a7ddcdec027091f50d8009adfc6b44ec4"></a><!-- doxytag: member="Querycache::__construct" ref="a7ddcdec027091f50d8009adfc6b44ec4" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classQuerycache.html#a7ddcdec027091f50d8009adfc6b44ec4">Querycache::__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="a579edcc576b076f884884cf509436768"></a><!-- doxytag: member="Querycache::load_With_SID" ref="a579edcc576b076f884884cf509436768" args="($id)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classQuerycache.html#a579edcc576b076f884884cf509436768">Querycache::load_With_SID</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 SID as parameter </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">$id</td><td>the id of the querycaches row </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0c711df493c72eb461241855f9f34c5f"></a><!-- doxytag: member="Querycache::set" ref="a0c711df493c72eb461241855f9f34c5f" args="($values)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classQuerycache.html#a0c711df493c72eb461241855f9f34c5f">Querycache::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('SID' => sid, 'type' => type, 'query' => query, 'db' => db). </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a26331885b240e1ac6cd3b8409f6787d2"></a><!-- doxytag: member="Querycache::setDb" ref="a26331885b240e1ac6cd3b8409f6787d2" args="($d)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classQuerycache.html#a26331885b240e1ac6cd3b8409f6787d2">Querycache::setDb</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">$ </td>
|
|
<td class="paramname"><em>d</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>set db attribute of the object. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">$d</td><td>the name of the database in the config global var that we want to use. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6e2e369125270695466baf423ae62ad2"></a><!-- doxytag: member="Querycache::setQuery" ref="a6e2e369125270695466baf423ae62ad2" args="($q)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classQuerycache.html#a6e2e369125270695466baf423ae62ad2">Querycache::setQuery</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 query attribute of the object. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">$q</td><td>query string </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7a4b7276270a9df57f7a5cc920fe5edc"></a><!-- doxytag: member="Querycache::setSID" ref="a7a4b7276270a9df57f7a5cc920fe5edc" args="($s)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classQuerycache.html#a7a4b7276270a9df57f7a5cc920fe5edc">Querycache::setSID</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 SID attribute of the object. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">$s</td><td>integer id </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac4a9fb03e63f009d57045c1c23adf550"></a><!-- doxytag: member="Querycache::setType" ref="ac4a9fb03e63f009d57045c1c23adf550" args="($t)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classQuerycache.html#ac4a9fb03e63f009d57045c1c23adf550">Querycache::setType</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 type attribute of the object. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">$t</td><td>type of the query, could be changePassword, changePermissions, changeEmail, createUser </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/querycache.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>
|