docu_system/classes/SYSTEM-SECURITY-security.html
Ulf Gebhardt 50de610cf6
generated new version
missing changes

more

more

more
2024-11-21 02:49:15 +01:00

1190 lines
78 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta charset="utf-8"/>
<title> SYSTEM - PHP Framework &raquo; \SYSTEM\SECURITY\security
</title>
<meta name="author" content=""/>
<meta name="description" content=""/>
<base href="../">
<link href="css/template.css" rel="stylesheet" media="all"/>
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<![endif]-->
<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">SYSTEM - PHP Framework</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>Namespaces</a></li>
<li><a href="\LIB">LIB</a></li>
<li><a href="\GIT">GIT</a></li>
<li><a href="\vakata">vakata</a></li>
<li><a href="\Michelf">Michelf</a></li>
<li><a href="\MatthiasMullie">MatthiasMullie</a></li>
<li><a href="\PHPDocMD">PHPDocMD</a></li>
<li><a href="\ScssPhp">ScssPhp</a></li>
<li><a href="\SYSTEM">SYSTEM</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>&#160;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-list-alt"></i>&#160;Errors
</a>
</li>
<li>
<a href="markers.html">
<i class="icon-list-alt"></i>&#160;Markers
</a>
</li>
<li>
<a href="deprecated.html">
<i class="icon-list-alt"></i>&#160;Deprecated
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="go_to_top">
<a href="#___" style="color: inherit">Back to top&#160;&#160;<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>
<style>
.deprecated h2 {
text-decoration: line-through;
}
</style>
<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>
<div class="btn-group visibility" data-toggle="buttons-checkbox">
<button class="btn public active" title="Show public elements">Public</button>
<button class="btn protected" title="Show protected elements">Protected</button>
<button class="btn private" title="Show private elements">Private</button>
<button class="btn inherited active" title="Show inherited elements">Inherited</button>
</div>
<ul class="side-nav nav nav-list">
<li class="nav-header">
<i class="icon-custom icon-method"></i> Methods
<ul>
<li class="method public">
<a href="#method_available" title="available :: Determine if username is already in use.">
<span class="description">Determine if username is already in use.</span><pre>available</pre>
</a>
</li>
<li class="method public">
<a href="#method_change_email" title="change_email :: Change logged in users Email.">
<span class="description">Change logged in users Email.</span><pre>change_email</pre>
</a>
</li>
<li class="method public">
<a href="#method_change_password" title="change_password :: Change logged in users Password">
<span class="description">Change logged in users Password</span><pre>change_password</pre>
</a>
</li>
<li class="method public">
<a href="#method_check" title="check :: Checks for a right for a logged in user">
<span class="description">Checks for a right for a logged in user</span><pre>check</pre>
</a>
</li>
<li class="method public">
<a href="#method_confirm" title="confirm :: Confirm a token sent using @see \SYSTEM\TOKEN\token utility
(email confirm, email change, password reset)">
<span class="description">Confirm a token sent using @see \SYSTEM\TOKEN\token utility
(email confirm, email change, password reset)</span><pre>confirm</pre>
</a>
</li>
<li class="method public">
<a href="#method_confirm_email" title="confirm_email :: Request an Confirm-Email for logged in User.">
<span class="description">Request an Confirm-Email for logged in User.</span><pre>confirm_email</pre>
</a>
</li>
<li class="method public">
<a href="#method_confirm_email_admin" title="confirm_email_admin :: Request an Confirm-Email for an User.">
<span class="description">Request an Confirm-Email for an User.</span><pre>confirm_email_admin</pre>
</a>
</li>
<li class="method public">
<a href="#method_create" title="create :: Create a new User. Permanently saved to the Database">
<span class="description">Create a new User. Permanently saved to the Database</span><pre>create</pre>
</a>
</li>
<li class="method public">
<a href="#method_getUser" title="getUser :: Get Userinfo stored in the current Session.">
<span class="description">Get Userinfo stored in the current Session.</span><pre>getUser</pre>
</a>
</li>
<li class="method public">
<a href="#method_isLoggedIn" title="isLoggedIn :: Check if the current session is a logged in user">
<span class="description">Check if the current session is a logged in user</span><pre>isLoggedIn</pre>
</a>
</li>
<li class="method public">
<a href="#method_load" title="load :: Save the value of a key from the current session(not preserved)">
<span class="description">Save the value of a key from the current session(not preserved)</span><pre>load</pre>
</a>
</li>
<li class="method public">
<a href="#method_login" title="login :: Login a User.">
<span class="description">Login a User.</span><pre>login</pre>
</a>
</li>
<li class="method public">
<a href="#method_logout" title="logout :: End the current Session and logout the User">
<span class="description">End the current Session and logout the User</span><pre>logout</pre>
</a>
</li>
<li class="method public">
<a href="#method_reset_password" title="reset_password :: Reset given users Password.">
<span class="description">Reset given users Password.</span><pre>reset_password</pre>
</a>
</li>
<li class="method public">
<a href="#method_save" title="save :: Save a key=&gt;value into the current session(not preserved)">
<span class="description">Save a key=&gt;value into the current session(not preserved)</span><pre>save</pre>
</a>
</li>
<li class="method public">
<a href="#method_update_session_data" title="update_session_data :: Update Sessiondata upon user infos change">
<span class="description">Update Sessiondata upon user infos change</span><pre>update_session_data</pre>
</a>
</li>
</ul>
</li>
<li class="nav-header protected">» Protected
<ul>
<li class="method protected">
<a href="#method_startSession" title="startSession :: State the Session for the current request">
<span class="description">State the Session for the current request</span><pre>startSession</pre>
</a>
</li>
</ul>
</li>
<li class="nav-header private">» Private
<ul>
</ul>
</li>
<li class="nav-header">
<i class="icon-custom icon-constant"></i> Constants
<ul>
</ul>
</li>
</ul>
</div>
<div class="span8">
<div class="element class">
<h1>security</h1>
<small style="display: block; text-align: right">
</small>
<p class="short_description">security Class provided by System to manage website user and its attributes</p>
<div class="details">
<div class="long_description">
</div>
<table class="table table-bordered">
<tr>
<th>
package
</th>
<td>
<p>SYSTEM\SECURITY</p>
</td>
</tr>
</table>
<h3><i class="icon-custom icon-method"></i> Methods</h3>
<a id="method_available"></a>
<div class="element clickable method public method_available" data-toggle="collapse" data-target=".method_available .collapse">
<h2>Determine if username is already in use.</h2>
<pre>available(stringusername, stringemail = null, booljson_result = false) : mixed</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>username</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Username to be checked</p>
</p>
</div>
<div class="subelement argument">
<h4>email</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>EMail to be checked</p>
</p>
</div>
<div class="subelement argument">
<h4>json_result</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Return data as JSON or Array</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Returns json with status true or Error or Array with userinfo.</p>
</p>
</div>
</div>
</div>
<a id="method_change_email"></a>
<div class="element clickable method public method_change_email" data-toggle="collapse" data-target=".method_change_email .collapse">
<h2>Change logged in users Email.</h2>
<pre>change_email(stringnew_email, stringpost_script = null, stringpost_script_data = null) : bool</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"><p>This will facilitate the @see \SYSTEM\TOKEN\token utility to generate
a token and send it to the logged in users email using php mailinc function.</p>
<p>This function can only be invoked if the user is logged in and uses the
function on himself.</p>
<p>This function will fail if the Email of the user is unconfirmed. You can
only change the email of a confirmed account.</p>
</div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>new_email</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>New Email for the logged in User</p>
</p>
</div>
<div class="subelement argument">
<h4>post_script</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Function to be executed AFTER clicking the EMail Link, BEFORE updating the EMail</p>
</p>
</div>
<div class="subelement argument">
<h4>post_script_data</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Additional Data for the Postscript</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Returns true or false</p>
</p>
</div>
</div>
</div>
<a id="method_change_password"></a>
<div class="element clickable method public method_change_password" data-toggle="collapse" data-target=".method_change_password .collapse">
<h2>Change logged in users Password</h2>
<pre>change_password(stringold_password_sha1, stringnew_password_sha1) : \SYSTEM\SECURITY\json</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>old_password_sha1</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Users old hashed Password</p>
</p>
</div>
<div class="subelement argument">
<h4>new_password_sha1</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Users new hashed Password</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\SYSTEM\SECURITY\json</code><p><p>Returns json with status true or false</p>
</p>
</div>
</div>
</div>
<a id="method_check"></a>
<div class="element clickable method public method_check" data-toggle="collapse" data-target=".method_check .collapse">
<h2>Checks for a right for a logged in user</h2>
<pre>check(intrightid, booljson_result = false) : mixed</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>rightid</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
int</code><p><p>Right ID to be checked</p>
</p>
</div>
<div class="subelement argument">
<h4>json_result</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Return data as JSON or Array</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Returns json with status true or false or true or false.</p>
</p>
</div>
</div>
</div>
<a id="method_confirm"></a>
<div class="element clickable method public method_confirm" data-toggle="collapse" data-target=".method_confirm .collapse">
<h2>Confirm a token sent using @see \SYSTEM\TOKEN\token utility
(email confirm, email change, password reset)</h2>
<pre>confirm(stringtoken) : bool</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>token</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Token given in eg an email.</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Returns json with status true or false or a bool</p>
</p>
</div>
</div>
</div>
<a id="method_confirm_email"></a>
<div class="element clickable method public method_confirm_email" data-toggle="collapse" data-target=".method_confirm_email .collapse">
<h2>Request an Confirm-Email for logged in User.</h2>
<pre>confirm_email(stringpost_script = null, stringpost_script_data = null) : bool</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"><p>This will facilitate the @see \SYSTEM\TOKEN\token utility to generate
a token and send it to the users email using php mailinc function.</p>
<p>This function can only be invoked if the user is logged in and uses the
function on himself.</p>
</div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>post_script</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Function to be executed AFTER clicking the EMail Link, BEFORE updating the Confirmation Status</p>
</p>
</div>
<div class="subelement argument">
<h4>post_script_data</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Additional Data for the Postscript</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Returns true or false</p>
</p>
</div>
</div>
</div>
<a id="method_confirm_email_admin"></a>
<div class="element clickable method public method_confirm_email_admin" data-toggle="collapse" data-target=".method_confirm_email_admin .collapse">
<h2>Request an Confirm-Email for an User.</h2>
<pre>confirm_email_admin(mixeduser, stringpost_script = null, stringpost_script_data = null) : bool</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"><p>This will facilitate the @see \SYSTEM\TOKEN\token utility to generate
a token and send it to the users email using php mailinc function..</p>
</div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>user</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p></p>
</div>
<div class="subelement argument">
<h4>post_script</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Function to be executed AFTER clicking the EMail Link, BEFORE updating the Confirmation Status</p>
</p>
</div>
<div class="subelement argument">
<h4>post_script_data</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Additional Data for the Postscript</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Returns true or false</p>
</p>
</div>
</div>
</div>
<a id="method_create"></a>
<div class="element clickable method public method_create" data-toggle="collapse" data-target=".method_create .collapse">
<h2>Create a new User. Permanently saved to the Database</h2>
<pre>create(stringusername, stringpassword_sha1, stringemail, stringlocale = null, booljson_result = false) : mixed</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>username</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Username of the new User</p>
</p>
</div>
<div class="subelement argument">
<h4>password_sha1</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Hashed Password of the new User</p>
</p>
</div>
<div class="subelement argument">
<h4>email</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Email of the new User</p>
</p>
</div>
<div class="subelement argument">
<h4>locale</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Language of the new User</p>
</p>
</div>
<div class="subelement argument">
<h4>json_result</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Return data as JSON or Array</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Returns json with status true or Error or Array with userinfo.</p>
</p>
</div>
</div>
</div>
<a id="method_getUser"></a>
<div class="element clickable method public method_getUser" data-toggle="collapse" data-target=".method_getUser .collapse">
<h2>Get Userinfo stored in the current Session.</h2>
<pre>getUser() : \SYSTEM\SECURITY\User</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
\SYSTEM\SECURITY\User</code><p><p>Returns User object or NULL</p>
</p>
</div>
</div>
</div>
<a id="method_isLoggedIn"></a>
<div class="element clickable method public method_isLoggedIn" data-toggle="collapse" data-target=".method_isLoggedIn .collapse">
<h2>Check if the current session is a logged in user</h2>
<pre>isLoggedIn(booljson_result = false) : mixed</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>json_result</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Return data as JSON or Array</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Returns json with status true or false or a bool.</p>
</p>
</div>
</div>
</div>
<a id="method_load"></a>
<div class="element clickable method public method_load" data-toggle="collapse" data-target=".method_load .collapse">
<h2>Save the value of a key from the current session(not preserved)</h2>
<pre>load(stringkey) : mixed</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>key</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>key to be queried</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Returns Value or null.</p>
</p>
</div>
</div>
</div>
<a id="method_login"></a>
<div class="element clickable method public method_login" data-toggle="collapse" data-target=".method_login .collapse">
<h2>Login a User.</h2>
<pre>login(stringusername, stringpassword_sha1, stringlocale = NULL, booljson_result = false) : mixed</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>username</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Username of the User</p>
</p>
</div>
<div class="subelement argument">
<h4>password_sha1</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Hashed Password of the User</p>
</p>
</div>
<div class="subelement argument">
<h4>locale</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Language of the User on login.</p>
</p>
</div>
<div class="subelement argument">
<h4>json_result</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Return data as JSON or Array</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Returns json with status true or Error or Array with userinfo.</p>
</p>
</div>
</div>
</div>
<a id="method_logout"></a>
<div class="element clickable method public method_logout" data-toggle="collapse" data-target=".method_logout .collapse">
<h2>End the current Session and logout the User</h2>
<pre>logout(booljson_result = false) : mixed</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>json_result</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Return data as JSON or Array</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Returns Json status true or true</p>
</p>
</div>
</div>
</div>
<a id="method_reset_password"></a>
<div class="element clickable method public method_reset_password" data-toggle="collapse" data-target=".method_reset_password .collapse">
<h2>Reset given users Password.</h2>
<pre>reset_password(mixedusername, stringpost_script = null, stringpost_script_data = null) : bool</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"><p>This will facilitate the @see \SYSTEM\TOKEN\token utility to generate
a token and send it to the users email using php mailinc function.
A new password is generated on invoke and sent with the email.
After confirming the token the new password given in the email is valid.</p>
</div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>username</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p></p>
</div>
<div class="subelement argument">
<h4>post_script</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Function to be executed AFTER clicking the EMail Link, BEFORE updating the Password</p>
</p>
</div>
<div class="subelement argument">
<h4>post_script_data</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>Additional Data for the Postscript</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
bool</code><p><p>Returns true or false</p>
</p>
</div>
</div>
</div>
<a id="method_save"></a>
<div class="element clickable method public method_save" data-toggle="collapse" data-target=".method_save .collapse">
<h2>Save a key=&gt;value into the current session(not preserved)</h2>
<pre>save(stringkey, mixedvalue) : null</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>key</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string</code><p><p>key for the given value</p>
</p>
</div>
<div class="subelement argument">
<h4>value</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Value for the given Key to be saved</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
null</code><p><p>Returns null.</p>
</p>
</div>
</div>
</div>
<a id="method_startSession"></a>
<div class="element clickable method protected method_startSession" data-toggle="collapse" data-target=".method_startSession .collapse">
<h2>State the Session for the current request</h2>
<pre>startSession() : null</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
null</code><p><p>Returns null.</p>
</p>
</div>
</div>
</div>
<a id="method_update_session_data"></a>
<div class="element clickable method public method_update_session_data" data-toggle="collapse" data-target=".method_update_session_data .collapse">
<h2>Update Sessiondata upon user infos change</h2>
<pre>update_session_data(mixeddata, mixedsession_id = null) : null</pre>
<div class="labels">
<span class="label">static</span> </div>
<div class="row collapse">
<div class="detail-description">
<div class="long_description"></div>
<table class="table">
<tr>
<th>
</th>
<td>
</td>
</tr>
</table>
<h3>Arguments</h3>
<div class="subelement argument">
<h4>data</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Data which has changed</p>
</p>
</div>
<div class="subelement argument">
<h4>session_id</h4>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
mixed</code><p><p>Session ID to be changed or null</p>
</p>
</div>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
<h3>Response</h3>
<code>
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
null</code><p><p>Returns null.</p>
</p>
</div>
</div>
</div>
</div>
</div>
<a id="\SYSTEM\SECURITY\security"></a>
<ul class="breadcrumb">
<li><a href="index.html"><i class="icon-custom icon-class"></i></a></li>
<li><span class="divider">\</span><a href="\SYSTEM\SECURITY">SECURITY</a></li>
<li class="active"><span class="divider">\</span><a href="\SYSTEM\SECURITY\security">security</a></li>
</ul>
</div>
</div>
</div>
<footer class="span12">
Template is built using <a href="https://getbootstrap.com/">Twitter Bootstrap 2</a> and icons provided by
<a href="https://glyphicons.com/">Glyphicons</a>.<br/>
Documentation is powered by <a href="https://www.phpdoc.org/">phpDocumentor </a> and<br/>
generated on Thu, 21 Nov 2024 01:33:25 +0000.<br/>
</footer>
</body>
</html>