Пример #1
0
 /**
  * Get the Singleton instance, creating it as necessary.
  * 
  * @param array $optsArray Optional configuration data
  * 
  * @return Cpanel_PublicAPI
  */
 public static function getInstance($optsArray = array())
 {
     if (self::$_instance === null) {
         self::$_canInstantiate = true;
         self::$_instance = new self($optsArray);
         self::$_canInstantiate = false;
     }
     return self::$_instance;
 }