Class QueryRecord

Description

Implements interfaces:

Habari QueryRecord Class

Located in /system/classes/queryrecord.php (line 9)


	
			
Direct descendents
Class Description
RewriteRule Habari RewriteRule Class
Post
Comment Habari CommentRecord Class
User Habari UserRecord Class
CronJob CronJob is a single cron task
LogEntry Habari LogEntry class Represents a log entry
UserGroup Habari UserGroup Class
Tag
Variable Summary
mixed $fields
mixed $newfields
mixed $unsetfields
Method Summary
QueryRecord __construct ([array $paramarray = array()])
void delete ()
boolean deleteRecord (string $table, array $updatekeyfields)
void exclude_fields (mixed $fields)
array get_url_args ()
void insert ()
boolean insertRecord (string $table)
array to_array ()
void update ()
boolean updateRecord (string $table, [array $updatekeyfields = array()])
mixed __get (string $name)
boolean __isset (string $name)
mixed __set (string $name, mixed $value)
Variables
mixed $fields = array() (line 11)
  • access: protected
mixed $newfields = array() (line 12)
  • access: protected
mixed $unsetfields = array() (line 13)
  • access: protected
Methods
Constructor __construct (line 21)

constructor __construct Constructor for the QueryRecord class.

  • access: public
QueryRecord __construct ([array $paramarray = array()])
  • array $paramarray: an associative array of initial field values.

Redefined in descendants as:
delete (line 167)

This is the public interface that deletes a record

  • access: public
void delete ()

Redefined in descendants as:
deleteRecord (line 177)

function deleteRecord

Deletes a record based on the match array

  • return: True on success, false if not
  • access: protected
boolean deleteRecord (string $table, array $updatekeyfields)
  • string $table: Table to delete from
  • array $updatekeyfields: An associative array of field data to match
exclude_fields (line 83)

Registers a (list of) fields(s) as being managed exclusively by the database.

  • access: public
void exclude_fields (mixed $fields)
  • mixed $fields: A database field name (string) or an array of field names
get_url_args (line 141)

Returns an array with the current field settings

  • return: The field settings as they would be saved
  • access: public
array get_url_args ()

Implementation of:
URLProperties::get_url_args()

Redefined in descendants as:
insert (line 107)

This is the public interface that inserts a record

  • access: public
void insert ()

Redefined in descendants as:
insertRecord (line 121)

function insertRecord(

Inserts this record's fields as a new row

  • return: True on success, false if not
  • access: protected
boolean insertRecord (string $table)
  • string $table: Table to update
list_excluded_fields (line 99)

returns an array of fields that should not be included in any database insert operation

  • return: an array of field names
  • access: public
array list_excluded_fields ()
to_array (line 132)

function to_array

Returns an array with the current field settings

  • return: The field settings as they would be saved
  • access: public
array to_array ()
update (line 148)

This is the public interface that updates a record

  • access: public
void update ()

Redefined in descendants as:
updateRecord (line 158)

function updateRecord

Updates this record's fields using the new data

  • return: True on success, false if not
  • access: protected
boolean updateRecord (string $table, [array $updatekeyfields = array()])
  • string $table: Table to update
  • array $updatekeyfields: An associative array of field data to match
__get (line 38)

function __get

Handles getting virtual properties for this class

  • return: The set value or NULL if none exists
  • access: public
mixed __get (string $name)
  • string $name: Name of the property

Redefined in descendants as:
__isset (line 74)

Magic isset for QueryRecord, returns whether a property value is set.

  • return: True if the value is set, false if not
  • access: public
boolean __isset (string $name)
  • string $name: The name of the parameter
__set (line 58)

function __set

Handles setting virtual properties for this class

  • return: The set value
  • access: public
mixed __set (string $name, mixed $value)
  • string $name: Name of the property
  • mixed $value: Value to set it to

Redefined in descendants as:

Documentation generated on Thu, 30 Oct 2008 20:31:24 +0100 by phpDocumentor 1.3.2