/**
* Fetches a record based on the condition
*
+ * @param bool Populate $this->values[] with data, along with $this->objdata[] ?
+ *
* @access public
*/
- function fetch()
+ function fetch($populate = false)
{
if ($this->condition == '')
{
$this->objdata = $result;
- foreach ($this->objdata AS $key => $value)
+ if ($populate)
{
- if (!isset($this->values["$key"]))
+ foreach ($this->objdata AS $key => $value)
{
- $this->values["$key"] = $value;
+ if (!isset($this->values["$key"]))
+ {
+ $this->values["$key"] = $value;
+ }
}
}
- Added TYPE_NONE as an alias for TYPE_NOCLEAN
- Added TYPE_BIN to create a macro in the API that will escape the string as binary, instead of a string
- DB_MySQL can now properly escape binary
+- No longer populate API->values[] when calling API->fetch() [api.php]
2.0.0
===============