Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-fiddle.git
<!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>Recipe Fiddle: com\whitemagicsoftware\Account 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">Recipe Fiddle
   
   </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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</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&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- 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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</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>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>com</b>      </li>
      <li class="navelem"><b>whitemagicsoftware</b>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html">Account</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">com\whitemagicsoftware\Account Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="com::whitemagicsoftware::Account" --><!-- doxytag: inherits="com::whitemagicsoftware::BaseController" -->
<p>Lists all the recipes associated with an account.  
 <a href="classcom_1_1whitemagicsoftware_1_1Account.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for com\whitemagicsoftware\Account:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcom_1_1whitemagicsoftware_1_1Account.png" usemap="#com\whitemagicsoftware\Account_map" alt=""/>
  <map id="com\whitemagicsoftware\Account_map" name="com\whitemagicsoftware\Account_map">
<area href="classcom_1_1whitemagicsoftware_1_1BaseController.html" title="Used by all subclasses that interact with the end user." alt="com\whitemagicsoftware\BaseController" shape="rect" coords="0,56,237,80"/>
<area href="classcom_1_1whitemagicsoftware_1_1Obj.html" title="Superclass that abstracts the common functionality." alt="com\whitemagicsoftware\Obj" shape="rect" coords="0,0,237,24"/>
</map>
 </div></div>

<p><a href="classcom_1_1whitemagicsoftware_1_1Account-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"><a class="anchor" id="ae5baf501fde7e87a6e6ff074de0a4a70"></a><!-- doxytag: member="com::whitemagicsoftware::Account::__construct" ref="ae5baf501fde7e87a6e6ff074de0a4a70" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#ae5baf501fde7e87a6e6ff074de0a4a70">__construct</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the connection that this class uses for database transactions. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a24f86919e045ea775a7b152a4a9790b4">exists</a> ($id)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks to see if the given account ID exists.  <a href="#a24f86919e045ea775a7b152a4a9790b4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a85330a9374ba3980493af3809cc28ed3">getParameterIdName</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the name of the parameter used to obtain the identifier for the object to edit.  <a href="#a85330a9374ba3980493af3809cc28ed3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a3b26ff6c2961ee9b358a73a90a82a2d9">getAuthorizationFunctionName</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the name of the database function to call to verify that this authentication token is allowed to modify a given account.  <a href="#a3b26ff6c2961ee9b358a73a90a82a2d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a5a6aa036b010a5481eae7ae91121dcf1">getLastResortId</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Overrides the default behaviour (return 0) to return the account ID.  <a href="#a5a6aa036b010a5481eae7ae91121dcf1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a3c96a9b0d6a8c708c177fa5e803fcfee">getStylesheetName</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the name of the stylesheet to use for transforming the recipe from XML to XHTML.  <a href="#a3c96a9b0d6a8c708c177fa5e803fcfee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f298a0fd3369b9188c2ee53b85460dd"></a><!-- doxytag: member="com::whitemagicsoftware::Account::getXhtml" ref="a4f298a0fd3369b9188c2ee53b85460dd" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a4f298a0fd3369b9188c2ee53b85460dd">getXhtml</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns account information in XHTML format. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3f3de2d1182afccda2950e5fa54ce064"></a><!-- doxytag: member="com::whitemagicsoftware::Account::handleRequest" ref="a3f3de2d1182afccda2950e5fa54ce064" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a3f3de2d1182afccda2950e5fa54ce064">handleRequest</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes database transactions depending on the supplied commands. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Lists all the recipes associated with an account. </p>
<p>This also allows the user to change their name.</p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>Apply the name-changing behaviour across the application. </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a24f86919e045ea775a7b152a4a9790b4"></a><!-- doxytag: member="com::whitemagicsoftware::Account::exists" ref="a24f86919e045ea775a7b152a4a9790b4" args="($id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com\whitemagicsoftware\<a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a24f86919e045ea775a7b152a4a9790b4">Account::exists</a> </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks to see if the given account ID exists. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>The identifier for an existing account. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the given recipe ID has data. </dd></dl>

<p>Reimplemented from <a class="el" href="classcom_1_1whitemagicsoftware_1_1BaseController.html#a651ebed023e094bd53ca4ea5a9a554ba">com\whitemagicsoftware\BaseController</a>.</p>

</div>
</div>
<a class="anchor" id="a3b26ff6c2961ee9b358a73a90a82a2d9"></a><!-- doxytag: member="com::whitemagicsoftware::Account::getAuthorizationFunctionName" ref="a3b26ff6c2961ee9b358a73a90a82a2d9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com\whitemagicsoftware\<a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a3b26ff6c2961ee9b358a73a90a82a2d9">Account::getAuthorizationFunctionName</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the name of the database function to call to verify that this authentication token is allowed to modify a given account. </p>
<p>Note that the authentication token (ID) is associated with the browser cookie.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true iff the account ID can be modified by the authentication ID. </dd></dl>

<p>Reimplemented from <a class="el" href="classcom_1_1whitemagicsoftware_1_1BaseController.html#a77444f5f040b678256c657b71ca2f535">com\whitemagicsoftware\BaseController</a>.</p>

</div>
</div>
<a class="anchor" id="a5a6aa036b010a5481eae7ae91121dcf1"></a><!-- doxytag: member="com::whitemagicsoftware::Account::getLastResortId" ref="a5a6aa036b010a5481eae7ae91121dcf1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com\whitemagicsoftware\<a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a5a6aa036b010a5481eae7ae91121dcf1">Account::getLastResortId</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Overrides the default behaviour (return 0) to return the account ID. </p>
<p>This should only get called when all other means to determine the ID for this request have failed.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>$this-&gt;<a class="el" href="classcom_1_1whitemagicsoftware_1_1BaseController.html#ad41d1acf3899789e0a01952fa664a1fe" title="Delegates to the Client to return the account ID for the client&#39;s authentication ID.">getAccountId()</a> </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classcom_1_1whitemagicsoftware_1_1BaseController.html#ad41d1acf3899789e0a01952fa664a1fe" title="Delegates to the Client to return the account ID for the client&#39;s authentication ID.">BaseController::getAccountId</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classcom_1_1whitemagicsoftware_1_1BaseController.html#a7736b4d09221ab5d861a3ee37352d2fe">com\whitemagicsoftware\BaseController</a>.</p>

</div>
</div>
<a class="anchor" id="a85330a9374ba3980493af3809cc28ed3"></a><!-- doxytag: member="com::whitemagicsoftware::Account::getParameterIdName" ref="a85330a9374ba3980493af3809cc28ed3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com\whitemagicsoftware\<a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a85330a9374ba3980493af3809cc28ed3">Account::getParameterIdName</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the name of the parameter used to obtain the identifier for the object to edit. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>"account-id" </dd></dl>

<p>Reimplemented from <a class="el" href="classcom_1_1whitemagicsoftware_1_1BaseController.html#a23ab3f53a3f9413c51751a9cec74f7b5">com\whitemagicsoftware\BaseController</a>.</p>

</div>
</div>
<a class="anchor" id="a3c96a9b0d6a8c708c177fa5e803fcfee"></a><!-- doxytag: member="com::whitemagicsoftware::Account::getStylesheetName" ref="a3c96a9b0d6a8c708c177fa5e803fcfee" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com\whitemagicsoftware\<a class="el" href="classcom_1_1whitemagicsoftware_1_1Account.html#a3c96a9b0d6a8c708c177fa5e803fcfee">Account::getStylesheetName</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the name of the stylesheet to use for transforming the recipe from XML to XHTML. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>"xsl/recipe.xsl" </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>class.Account.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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</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 Tue Jul 30 2013 22:06:29 for Recipe Fiddle by &#160;<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>