nyroFwk  0.2
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 }
static getInstance()
static init()
static $cfg
static $instance
static loadCfg($className, $searchParent=true)
static get($className, array $cfg=array())
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by doxygen 1.8.13