Class Xyster_Db_Token

Description

Token containing a SQL fragment and bind values

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Db/Token.php (line 24)


	
			
Variable Summary
array $_bind
string $_sql
Method Summary
Xyster_Db_Token __construct (string $sql, [ $bind = array()])
array getBindValues ()
string getSql ()
Variables
array $_bind = array() (line 38)

The bind values, if any

  • access: protected
string $_sql (line 31)

The SQL fragment

  • access: protected
Methods
Constructor __construct (line 46)

Creates a new SqlToken

  • access: public
Xyster_Db_Token __construct (string $sql, [ $bind = array()])
  • string $sql
  • array $bind
addBindValues (line 79)

Merges the bind values from another token

If keys are the same, values in this token will be overwritten.

  • access: public
void addBindValues (Xyster_Db_Token $token)
getBindValues (line 67)

Gets the bind values for the SQL text (if any)

  • access: public
array getBindValues ()
getSql (line 57)

Gets the SQL text

  • access: public
string getSql ()

Documentation generated on Mon, 19 May 2008 17:07:39 -0400 by phpDocumentor 1.4.2