Class Details

Templating like class for building SQL statements.

Examples: 'name = :name AND author = :author' 'id = IN(:ids)' 'id IN(:subselect)'


Class Methods

public void bind ( $parameter_number , $value )

Bind a value to the specific one based index. There must be a bind marker for each value bound or to_s() will throw an exception.

  • $parameter_number -
  • $value -
public void bind_values ( $values )
  • $values -
public void get_connection ( )

Returns the connection object.

public Expressions __construct ( $connection , [ $expressions = null] )
  • $connection -
  • $expressions -
public void set_connection ( string $connection )

Sets the connection object. It is highly recommended to set this so we can use the adapter's native escaping mechanism.

  • string $connection - a Connection instance
public void to_s ( [ $substitute = false] , [ &$options = null] )
  • $substitute -
  • &$options -
public void values ( )

Returns all the values currently bound.


Class Constants

ParameterMarker = '?'