Example #1
0
 /**
  * Returns the global authentication object, only creating it
  * if it doesn't already exist.
  *
  * @return  JAuthentication  The global JAuthentication object
  *
  * @since   11.1
  */
 public static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new JAuthentication();
     }
     return self::$instance;
 }