Class RSDColumnValue

Description

This class can be used to express a value to be used in a SQL statement.

Located in /code/framework/RSDEngine/RSDTable.php (line 919)


	
			
Variable Summary
Method Summary
RSDColumnValue RSDColumnValue ($value $value, [$prepareString $prepareString = false])
mixed getError ()
String getPrepareString ()
String getValue ()
Variables
RSError $_error = null (line 952)

This is where an error that occures in the constructor is stored.

String $_prepareString = '?' (line 945)

The prepare string.

This can be '?' ... the value stored in $this->_value will be quoted '!' ... the value stored in $this->_value will not be quoted; it will be used AS IS '&' ... the value stored in $this->_value will be treated as a filename; the (quoted) contents of this file will be used '%' ... the value stored in $this->_value will be quoted and used like this: LIKE '%$QUOTED_VALUE%'; this is only useful for a WHERE clause.

String $_value = '' (line 926)

Depending on $this->_prepareString $this->_value will be treaded differently.

Methods
Constructor RSDColumnValue (line 965)

The constructor method.

If an instance of RSDColumnValue (or a subclass of RSDColumnValue) is passed as first argument, its value and prepareString will be used. But you can overwrite the prepareString of the passed RSDColumnValue instance by passing a prepareString of your choice as second argument.

RSDColumnValue RSDColumnValue ($value $value, [$prepareString $prepareString = false])
  • $value $value: mixed A string or an instance of RSDColumnValue.
  • $prepareString $prepareString: String The prepare string (one of '?', '!', '&'). If this argument is omitted '?' will be used.
getError (line 1019)

Returns the error stored in $this->_error or if no error occurred false.

mixed getError ()
getPrepareString (line 1010)

Returns $this->_prepareString.

  • access: public
  • see: $this->_prepareString
String getPrepareString ()
getValue (line 999)

Returns $this->_value.

  • access: public
  • see: $this->_value
String getValue ()

Documentation generated on Mon, 8 Dec 2003 13:13:01 +0100 by phpDocumentor 1.2.3