/** * Get the instance of this object. The object will be instantiated if necessary * * @return object */ public static function &get_instance() { if (!isset(self::$_instance)) { $c = __CLASS__; self::$_instance = new $c(); } return self::$_instance; }