SQLiteIdGenerator Class Reference

Inheritance diagram for SQLiteIdGenerator:

IdGenerator

List of all members.

Public Member Functions

 __construct (Connection $conn)
 Creates a new IdGenerator class, saves passed connection for use later by getId() method.
 isBeforeInsert ()
 isAfterInsert ()
 getIdMethod ()
 getId ($unused=null)

Private Attributes

 $conn
 Connection object that instantiated this class.


Detailed Description

Definition at line 12 of file SQLiteIdGenerator.php.


Constructor & Destructor Documentation

SQLiteIdGenerator::__construct ( Connection conn  ) 

Creates a new IdGenerator class, saves passed connection for use later by getId() method.

Parameters:
Connection $conn

Definition at line 22 of file SQLiteIdGenerator.php.

00023     {
00024         $this->conn = $conn;
00025     }


Member Function Documentation

SQLiteIdGenerator::getId ( unused = null  ) 

See also:
IdGenerator::getId()

Implements IdGenerator.

Definition at line 54 of file SQLiteIdGenerator.php.

00055     {
00056         return sqlite_last_insert_rowid($this->conn->getResource());
00057     }

SQLiteIdGenerator::getIdMethod (  ) 

See also:
IdGenerator::getIdMethod()

Implements IdGenerator.

Definition at line 46 of file SQLiteIdGenerator.php.

00047     {
00048         return self::AUTOINCREMENT;
00049     }

SQLiteIdGenerator::isAfterInsert (  ) 

See also:
IdGenerator::isAfterInsert()

Implements IdGenerator.

Definition at line 38 of file SQLiteIdGenerator.php.

00039     {
00040         return true;
00041     }

SQLiteIdGenerator::isBeforeInsert (  ) 

See also:
IdGenerator::isBeforeInsert()

Implements IdGenerator.

Definition at line 30 of file SQLiteIdGenerator.php.

00031     {
00032         return false;
00033     }    


Member Data Documentation

SQLiteIdGenerator::$conn [private]

Connection object that instantiated this class.

Definition at line 15 of file SQLiteIdGenerator.php.


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

Generated on Wed May 6 23:10:50 2009 for fareofficelib by  doxygen 1.5.8