GenieGate, Version 1.1.0 (PHP 5) manual

Constructor

public GenieGate_Api_Login __construct( $DBLink Resource = FALSE,
                                        $DBName boolean = FALSE);

Constructor.

The database link and database name are optional, but recommended. (if none given it just calls mysql_[p]connect(), but only when it is needed.)

NOTE: To enhance reusability, GenieGate_DB isn't used for database manipulation, this allows this file to included directly w/out adjusting the include path for other GenieGate libraries.

If a GenieGate_DB object is passed on the constructor, it's getDBH() method is called to obtain the handle.