Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370

## /DataUpdate.php

Description

Some functions and a base class to help with updating records.

This subpackage provides some functions that are useful around single record database activities such as insert and update.

- author: Andrew McMillan <andrew@mcmillan.net.nz>
- copyright: Catalyst IT Ltd, Morphoss Ltd <http://www.morphoss.com/>
- license: GNU GPL v2 or later

Classes

Class | Description
--- | ---
DBRecord | A Base class to use for records which will be read/written from the database.

Includes
Strict Standards: Only variables should be passed by reference in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 712 Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370
require_once ('AwlQuery.php') (line 16)
require_once ('AWLUtilities.php') (line 15)
Functions
Strict Standards: Only variables should be passed by reference in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 712 Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/php/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370
sql_from_object (line 28)

Build SQL INSERT/UPDATE statement from an associative array of fieldnames => values.

- return: An SQL Update or Insert statement with all fields/values from the array.

string sql_from_object (array $obj, string $type, string $tablename, string $where, [string $fprefix = &quot;&quot;])

- array $obj: The object of fieldnames => values.
- string $type: The word "update" or something else (which implies "insert").
- string $tablename: The name of the table being updated.
- string $where: What the "WHERE ..." clause needs to be for an UPDATE statement.
- string $fprefix: An optional string which all fieldnames in $assoc are prefixed with.

sql_from_post (line 112)

Build SQL INSERT/UPDATE statement from the $_POST associative array

- return: An SQL Update or Insert statement with all fields/values from the array.

string sql_from_post (string $type, string $tablename, string $where, [string $fprefix = &quot;&quot;])

- string $type: The word "update" or something else (which implies "insert").
- string $tablename: The name of the table being updated.
- string $where: What the "WHERE ..." clause needs to be for an UPDATE statement.
- string $fprefix: An optional string which all fieldnames in $assoc are prefixed with.

Documentation generated on Wed, 04 Jul 2012 07:06:13 +0000 by phpDocumentor 1.4.3