/** * get_instance function * * Return singleton instance * * @return object **/ static function get_instance() { if (self::$_instance === NULL) { self::$_instance = new self(); } return self::$_instance; }