nyroFwk
0.2
var
www
users
nyrofwk
src
nyro
security.class.php
Go to the documentation of this file.
1
<?php
11
final
class
security
{
12
18
private
static
$instance
=
false
;
19
25
private
static
$cfg
;
26
30
private
function
__construct
() {}
31
37
public
static
function
getInstance
() {
38
if
(self::$instance ===
false
)
39
self::init();
40
return
self::$instance;
41
}
42
46
private
static
function
init
() {
47
self::$cfg =
new
config
(
factory::loadCfg
(__CLASS__));
48
self::$instance =
factory::get
(
'security_'
.self::$cfg->use);
49
}
50
51
}
security\getInstance
static getInstance()
Definition:
security.class.php:37
security\__construct
__construct()
Definition:
security.class.php:30
security\init
static init()
Definition:
security.class.php:46
security\$cfg
static $cfg
Definition:
security.class.php:25
security
Definition:
security.class.php:11
security\$instance
static $instance
Definition:
security.class.php:18
factory\loadCfg
static loadCfg($className, $searchParent=true)
Definition:
factory.class.php:113
config
Definition:
config.class.php:10
factory\get
static get($className, array $cfg=array())
Definition:
factory.class.php:192
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by
1.8.13