Пример #1
0
 /**
  * constructor
  *
  * @param $db is a mysqli link to db
  * @param $configObject a Rogo config object populated from config.inc
  *
  * @return none
  */
 function __construct($configObject, $db)
 {
     if (is_object(self::$inst)) {
         throw new Exception("Highlander:: there can be only one UserObject");
     }
     $this->db =& $db;
     $this->configObj =& $configObject;
     self::$inst = $this;
 }