Exemplo n.º 1
0
 /**
  * Get a database object
  *
  * Returns a reference to the global {@link rDatabase} object, only creating it
  * if it doesn't already exist.
  *
  * @return object rDatabase
  */
 public static function &getDBO()
 {
     static $instance;
     if (!is_object($instance)) {
         $instance = ROLESFactory::_createDBO();
     }
     return $instance;
 }