Пример #1
0
 /**
  * to get singleton instance
  *
  * @access public
  * @return object
  */
 public function &getSingleton()
 {
     if (self::$instance == null) {
         self::$instance = new RBAC();
     }
     return self::$instance;
 }
Пример #2
0
 /**
  * to get singleton instance
  *
  * @access public
  * @return object
  */
 function &getSingleton()
 {
     if (self::$instance == NULL) {
         self::$instance = new RBAC();
     }
     return self::$instance;
 }