SQLitePreparedStatement Class Reference

Inheritance diagram for SQLitePreparedStatement:

PreparedStatementCommon PreparedStatement

List of all members.

Public Member Functions

 setBlob ($paramIndex, $blob)
 Applies sqlite_udf_encode_binary() to ensure that binary contents will be handled correctly by sqlite.

Protected Member Functions

 escape ($str)
 Quotes string using native sqlite_escape_string() function.


Detailed Description

Definition at line 32 of file SQLitePreparedStatement.php.


Member Function Documentation

SQLitePreparedStatement::escape ( str  )  [protected]

Quotes string using native sqlite_escape_string() function.

See also:
ResultSetCommon::escape()

Reimplemented from PreparedStatementCommon.

Definition at line 38 of file SQLitePreparedStatement.php.

00039     {
00040         return sqlite_escape_string($str);
00041     }

SQLitePreparedStatement::setBlob ( paramIndex,
blob 
)

Applies sqlite_udf_encode_binary() to ensure that binary contents will be handled correctly by sqlite.

See also:
PreparedStatement::setBlob()

ResultSet::getBlob()

Reimplemented from PreparedStatementCommon.

Definition at line 48 of file SQLitePreparedStatement.php.

References PreparedStatementCommon::setNull().

00049     {    
00050         if ($blob === null) {
00051             $this->setNull($paramIndex);
00052         } else {
00053             // they took magic __toString() out of PHP5.0.0; this sucks
00054             if (is_object($blob)) {
00055                 $blob = $blob->__toString();
00056             }
00057             $this->boundInVars[$paramIndex] = "'" . sqlite_udf_encode_binary( $blob ) . "'";
00058         }
00059     }


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