KjwXmlSql Class Reference

KjwXmlSql is a tiny xml implementation of the KjwFakeSql abstract class. More...

Inheritance diagram for KjwXmlSql:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 KjwXmlSql ($server, $unused_port, $unused_user, $unused_pass, $path)
 Construct a KjwXmlSql object.
 insertId ()
 Returns the id of the last INSERT clause that uses an IDENTITY/SEQUENCE/AUTO_INCREMENT value.
 _simpleSelect ($table, $columns, $order, $skip=0, $max=-1)
 _simpleInsert ($table, $args)

Public Attributes

 $_dbpath = null
 $_last_insert_id = null


Detailed Description

KjwXmlSql is a tiny xml implementation of the KjwFakeSql abstract class.

It does not support much SQL at all. It's supposed to be a temporary solution for tiny database needs. Don't use this for anything larger than a tiny guestbook or some other small thing.

Definition at line 42 of file KjwXmlSql.php.


Member Function Documentation

KjwXmlSql::insertId (  ) 

Returns the id of the last INSERT clause that uses an IDENTITY/SEQUENCE/AUTO_INCREMENT value.

Returns:
The new id.
Note:
Don't try to be funny and do SELECT or whatever queries before calling this.

Reimplemented from KjwSql.

Definition at line 69 of file KjwXmlSql.php.

KjwXmlSql::KjwXmlSql ( server,
unused_port,
unused_user,
unused_pass,
path 
)

Construct a KjwXmlSql object.

Parameters:
$server Must be 'localhost' as we'll be using local files.
$unused_port Unused, must be a zero.
$unused_user Username, must be an empty string.
$unused_pass Password, must be an empty string.
$path Path to the xml/lock files, should be writable.

Definition at line 55 of file KjwXmlSql.php.

References KjwFakeSql::KjwFakeSql().


The documentation for this class was generated from the following file:

Generated on Wed Apr 8 22:16:37 2009 for KjwLib-php45 by  doxygen 1.5.8