Exemplo n.º 1
0
 /**
  * Return an instance of this class.
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemplo n.º 2
0
 /**
  * Return an instance of this class.
  * @return    object    A single instance of this class.
  */
 public static function get_instance($network_wide = '')
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
         global $network_wide;
         $network_wide = $network_wide;
     }
     return self::$instance;
 }