miniMVC/docs/namespaces/default.html

441 lines
19 KiB
HTML
Raw Normal View History

<!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>miniMVC » default</title>
<meta name="author" content="Mike van Riel">
<meta name="description" content="">
<link href="../css/template.css" rel="stylesheet" media="all">
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner"><div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">miniMVC</a><div class="nav-collapse"><ul class="nav">
<li class="dropdown">
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
<li><a>Packages</a></li>
<li><a href="../packages/Default.html"><i class="icon-folder-open"></i> Default</a></li>
<li><a href="../packages/miniMVC.html"><i class="icon-folder-open"></i> miniMVC</a></li>
</ul>
</li>
<li class="dropdown" id="charts-menu">
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
</li>
<li class="dropdown" id="reports-menu">
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
Reports <b class="caret"></b></a><ul class="dropdown-menu">
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
<span class="label label-info">0</span></a></li>
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
<ul></ul></a></li>
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
<span class="label label-info">0</span></a></li>
</ul>
</li>
</ul></div>
</div></div>
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
</div>
<div id="___" class="container">
<noscript><div class="alert alert-warning">
Javascript is disabled; several features are only available
if Javascript is enabled.
</div></noscript>
<div class="row">
<div class="span4">
<div class="btn-group view pull-right" data-toggle="buttons-radio">
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
</div>
<ul class="side-nav nav nav-list">
<li class="nav-header">
<i class="icon-map-marker"></i> Namespaces</li>
<li>
<a href="../namespaces/default.html" title="default"><i class="icon-th"></i>default</a><ul class="nav nav-list nav-namespaces"></ul>
</li>
</ul>
</div>
<div class="span8 namespace-contents">
<ul class="breadcrumb">
<li>
<a href="../index.html"><i class="icon-th"></i></a><span class="divider">\</span>
</li>
<li class="active"><a href="../namespaces/default.html">default</a></li>
</ul>
<div class="namespace-indent">
<h3>
<i class="icon-custom icon-function"></i> Functions</h3>
<a name="__call" id="__call"></a><div class="element clickable function __call" data-toggle="collapse" data-target=".__call .collapse">
<h2>PHP magic method to facilitate dynamic methods</h2>
2012-04-26 16:50:41 -04:00
<pre>__call(string $name, array $params) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$name</h4>
<code>string</code>
</div>
<div class="subelement argument">
2012-04-26 16:50:41 -04:00
<h4>$params</h4>
<code>array</code>
</div>
</div></div>
</div>
2012-04-27 16:28:25 -04:00
<a name="__clone" id="__clone"></a><div class="element clickable function __clone" data-toggle="collapse" data-target=".__clone .collapse">
<h2>Magic function called when cloning an object</h2>
<pre>__clone() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="__construct" id="__construct"></a><div class="element clickable function __construct" data-toggle="collapse" data-target=".__construct .collapse">
<h2>Protected constructor for creating the one instance</h2>
<pre>__construct() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
2012-04-27 16:28:25 -04:00
<a name="__invoke" id="__invoke"></a><div class="element clickable function __invoke" data-toggle="collapse" data-target=".__invoke .collapse">
<h2>PHP magic method that is called when an object is treated as a function</h2>
<pre>__invoke(array $params) : \self</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
2012-04-27 16:28:25 -04:00
<h4>$params</h4>
<code>array</code>
</div>
2012-04-27 16:28:25 -04:00
<h3>Returns</h3>
<div class="subelement response"><code>\self</code></div>
</div></div>
</div>
<a name="__toString" id="__toString"></a><div class="element clickable function __toString" data-toggle="collapse" data-target=".__toString .collapse">
<h2>Prints out the contents of the object when used as a string</h2>
<pre>__toString() : string</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
2012-05-21 14:51:07 -04:00
<a name="autoload" id="autoload"></a><div class="element clickable function autoload" data-toggle="collapse" data-target=".autoload .collapse">
<h2>Function to autoload libraries/classes</h2>
<pre>autoload($name) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$name</h4>
<code></code><p>string</p></div>
</div></div>
</div>
<a name="controller_methods" id="controller_methods"></a><div class="element clickable function controller_methods" data-toggle="collapse" data-target=".controller_methods .collapse">
<h2>Returns routable methods for the specified controller class</h2>
<pre>controller_methods(string $controller) : array</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$controller</h4>
<code>string</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>array</code></div>
</div></div>
</div>
<a name="do_include" id="do_include"></a><div class="element clickable function do_include" data-toggle="collapse" data-target=".do_include .collapse">
<h2>Array_map callback to load a folder of classes at once</h2>
<pre>do_include(string $path) : void</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$path</h4>
<code>string</code>
</div>
</div></div>
</div>
2012-04-27 16:28:25 -04:00
<a name="get_instance" id="get_instance"></a><div class="element clickable function get_instance" data-toggle="collapse" data-target=".get_instance .collapse">
<h2>Singleton getter function</h2>
<pre>get_instance() : \self</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Returns</h3>
<div class="subelement response"><code>\self</code></div>
</div></div>
</div>
2012-05-16 16:47:36 -04:00
<a name="init" id="init"></a><div class="element clickable function init" data-toggle="collapse" data-target=".init .collapse">
<h2>Load required classes for bootstraping</h2>
<pre>init() : void</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="is_like_array" id="is_like_array"></a><div class="element clickable function is_like_array" data-toggle="collapse" data-target=".is_like_array .collapse">
<h2>Utility function to check if a variable is set, and is an array or object</h2>
<pre>is_like_array(mixed $var) : bool</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$var</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>bool</code></div>
</div></div>
</div>
<a name="on_error" id="on_error"></a><div class="element clickable function on_error" data-toggle="collapse" data-target=".on_error .collapse">
<h2>Custom error handler</h2>
2012-04-27 16:28:25 -04:00
<pre>on_error(int $severity, string $message, string $filepath, int $line) : <a href="http://php.net/manual/en/class.errorexception.php">\ErrorException</a></pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$severity</h4>
<code>int</code>
</div>
<div class="subelement argument">
<h4>$message</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$filepath</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$line</h4>
<code>int</code>
</div>
2012-04-27 16:28:25 -04:00
<h3>Returns</h3>
<div class="subelement response"><code><a href="http://php.net/manual/en/class.errorexception.php">\ErrorException</a></code></div>
</div></div>
</div>
<a name="on_exception" id="on_exception"></a><div class="element clickable function on_exception" data-toggle="collapse" data-target=".on_exception .collapse">
<h2>Custom exception handlererror_get_last</h2>
<pre>on_exception(<a href="http://php.net/manual/en/class.exception.php">\Exception</a> $exception) : void</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$exception</h4>
<code><a href="http://php.net/manual/en/class.exception.php">\Exception</a></code>
</div>
</div></div>
</div>
<a name="route" id="route"></a><div class="element clickable function route" data-toggle="collapse" data-target=".route .collapse">
<h2>Calls the appropriate module/controller/function based on the url</h2>
2012-05-01 15:22:29 -04:00
<pre>route() : void</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="show_404" id="show_404"></a><div class="element clickable function show_404" data-toggle="collapse" data-target=".show_404 .collapse">
<h2>General 404 function</h2>
2012-05-01 15:22:29 -04:00
<pre>show_404() : void</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="show_error" id="show_error"></a><div class="element clickable function show_error" data-toggle="collapse" data-target=".show_error .collapse">
<h2>Fatal Error page function</h2>
<pre>show_error(string $message, int $status_code) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$message</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$status_code</h4>
<code>int</code>
</div>
</div></div>
</div>
<a name="shutdown" id="shutdown"></a><div class="element clickable function shutdown" data-toggle="collapse" data-target=".shutdown .collapse">
<h2>Function to run on script shutdown
-used to catch most fatal errors, and
display them cleanly</h2>
2012-05-01 15:22:29 -04:00
<pre>shutdown() : void</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="site_url" id="site_url"></a><div class="element clickable function site_url" data-toggle="collapse" data-target=".site_url .collapse">
<h2>Returns a full url from a url segment</h2>
<pre>site_url(string $segment) : string</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$segment</h4>
<code>string</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
2012-05-21 14:51:07 -04:00
<a name="sys_autoload" id="sys_autoload"></a><div class="element clickable function sys_autoload" data-toggle="collapse" data-target=".sys_autoload .collapse">
<h2>Function to autoload system libraries</h2>
<pre>sys_autoload($name) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$name</h4>
<code></code><p>string</p></div>
</div></div>
</div>
<a name="to_string" id="to_string"></a><div class="element clickable function to_string" data-toggle="collapse" data-target=".to_string .collapse">
<h2>Prints out the contents of the object</h2>
<pre>to_string(\object/array $data, string $method) : string</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$data</h4>
<code>\object/array</code>
</div>
<div class="subelement argument">
<h4>$method</h4>
<code>string</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
<h3>
<i class="icon-custom icon-class"></i> Classes and interfaces</h3>
2012-04-26 16:50:41 -04:00
<a name="DB" id="DB"></a><div class="element ajax clickable class" href="../classes/DB.html">
<h1>DB<a href="../classes/DB.html"></a>
</h1>
<p class="short_description">Extend PHP's PDO class to add some more functionality</p>
<div class="details collapse"></div>
<a href="../classes/DB.html" class="more">« More »</a>
</div>
2012-05-21 14:51:07 -04:00
<a name="Data_Store" id="Data_Store"></a><div class="element ajax clickable class" href="../classes/Data_Store.html">
<h1>Data_Store<a href="../classes/Data_Store.html"></a>
</h1>
<p class="short_description">Class for using JSON as a key->value data store</p>
<div class="details collapse"></div>
<a href="../classes/Data_Store.html" class="more">« More »</a>
</div>
2012-04-27 16:28:25 -04:00
<a name="MM" id="MM"></a><div class="element ajax clickable class" href="../classes/MM.html">
<h1>MM<a href="../classes/MM.html"></a>
</h1>
<p class="short_description">Class for standalone JSObject objects</p>
<div class="details collapse"></div>
<a href="../classes/MM.html" class="more">« More »</a>
</div>
<a name="MM_Controller" id="MM_Controller"></a><div class="element ajax clickable class" href="../classes/MM_Controller.html">
<h1>MM_Controller<a href="../classes/MM_Controller.html"></a>
</h1>
<p class="short_description">Base Controller Class</p>
<div class="details collapse"></div>
<a href="../classes/MM_Controller.html" class="more">« More »</a>
</div>
<a name="MM_Model" id="MM_Model"></a><div class="element ajax clickable class" href="../classes/MM_Model.html">
<h1>MM_Model<a href="../classes/MM_Model.html"></a>
</h1>
<p class="short_description">Base Model Class</p>
<div class="details collapse"></div>
<a href="../classes/MM_Model.html" class="more">« More »</a>
</div>
<a name="MM_Output" id="MM_Output"></a><div class="element ajax clickable class" href="../classes/MM_Output.html">
<h1>MM_Output<a href="../classes/MM_Output.html"></a>
</h1>
<p class="short_description">Class for displaying output and setting http headers</p>
<div class="details collapse"></div>
<a href="../classes/MM_Output.html" class="more">« More »</a>
</div>
<a name="MM_Page" id="MM_Page"></a><div class="element ajax clickable class" href="../classes/MM_Page.html">
<h1>MM_Page<a href="../classes/MM_Page.html"></a>
</h1>
<p class="short_description">Class for building pages</p>
<div class="details collapse"></div>
<a href="../classes/MM_Page.html" class="more">« More »</a>
</div>
2012-05-21 14:51:07 -04:00
<a name="Session" id="Session"></a><div class="element ajax clickable class" href="../classes/Session.html">
<h1>Session<a href="../classes/Session.html"></a>
2012-05-03 13:26:09 -04:00
</h1>
<p class="short_description">Class to improve handling of PHP sessions</p>
<div class="details collapse"></div>
2012-05-21 14:51:07 -04:00
<a href="../classes/Session.html" class="more">« More »</a>
2012-05-03 13:26:09 -04:00
</div>
<a name="miniMVC" id="miniMVC"></a><div class="element ajax clickable class" href="../classes/miniMVC.html">
<h1>miniMVC<a href="../classes/miniMVC.html"></a>
</h1>
<p class="short_description">Base class for the framework</p>
<div class="details collapse"></div>
<a href="../classes/miniMVC.html" class="more">« More »</a>
</div>
<h3>
<i class="icon-custom icon-constant"></i> Constants</h3>
<a name="ENVIRONMENT" id="ENVIRONMENT"> </a><div class="element clickable constant ENVIRONMENT" data-toggle="collapse" data-target=".ENVIRONMENT .collapse">
<h2>miniMVC bootstrap file</h2>
<pre>ENVIRONMENT </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<table class="table table-bordered">
<tr>
<th>package</th>
<td><a href="..//packages/miniMVC.App.html">miniMVC</a></td>
</tr>
<tr>
<th>subpackage</th>
<td>App</td>
</tr>
</table>
</div></div>
</div>
<a name="MM_APP_PATH" id="MM_APP_PATH"> </a><div class="element clickable constant MM_APP_PATH" data-toggle="collapse" data-target=".MM_APP_PATH .collapse">
<h2>MM_APP_PATH</h2>
<pre>MM_APP_PATH </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="MM_BASE_PATH" id="MM_BASE_PATH"> </a><div class="element clickable constant MM_BASE_PATH" data-toggle="collapse" data-target=".MM_BASE_PATH .collapse">
<h2>MM_BASE_PATH</h2>
<pre>MM_BASE_PATH </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="MM_MOD_PATH" id="MM_MOD_PATH"> </a><div class="element clickable constant MM_MOD_PATH" data-toggle="collapse" data-target=".MM_MOD_PATH .collapse">
<h2>MM_MOD_PATH</h2>
<pre>MM_MOD_PATH </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="MM_SYS_PATH" id="MM_SYS_PATH"> </a><div class="element clickable constant MM_SYS_PATH" data-toggle="collapse" data-target=".MM_SYS_PATH .collapse">
<h2>MM_SYS_PATH</h2>
<pre>MM_SYS_PATH </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
</div>
</div>
</div>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
2012-05-21 14:51:07 -04:00
generated on 2012-05-21T14:50:58-04:00.<br></footer></div>
</div>
</body>
</html>