Esempio n. 1
0
 /**
  * According to singleton design patter
  * getIstance return an istance of the class
  * or create one istance
  *
  * @access public
  * @return mySession
  */
 public static function getInstance($_MYSESSION_CONF = '')
 {
     if ($_MYSESSION_CONF === '') {
         global $_MYSESSION_CONF;
     }
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
         self::$instance->setUp($_MYSESSION_CONF);
     }
     return self::$instance;
 }