$host, 'user' => $user, 'password' => $password, 'database' => $database, 'prefix' => $prefix ); parent::__construct( $options ); } /** * This global function loads the first row of a query into an object * * If an object is passed to this function, the returned row is bound to the existing elements of object. * If object has a value of null, then all of the returned query fields returned in the object. * * @param object The address of variable */ function loadObject( &$object ) { if ($object != null) { if (!($cur = $this->query())) { return false; } if ($array = mysqli_fetch_assoc( $cur )) { mysqli_free_result( $cur ); mosBindArrayToObject( $array, $object, null, null, false ); return true; } else { return false; } } else { $object = parent::loadObject(); return $object; } } /** * Execute a batch query * * @abstract * @access public * @return mixed A database resource if successful, FALSE if not. */ function query_batch( $abort_on_error=true, $p_transaction_safe = false) { return parent::queryBatch( $abort_on_error, $p_transaction_safe); } }