HRDIODB
[ class tree: HRDIODB ] [ index: HRDIODB ] [ all elements ]

Class: hrdi_db

Source Location: /hrdi_db_class.php

Class Overview

mcpear
   |
   --hrdi_db

HRDI database class.


Methods


Inherited Methods

Class: mcpear

mcpear::mcpear()
Constructor.
mcpear::add()
Adds a table row.
mcpear::db_connect()
Initializes a PEAR database connection.
mcpear::db_query()
General database query method.
mcpear::delete()
Deletes table rows.
mcpear::get_column()
Retrieves a column of data.
mcpear::get_field_names()
Retrieves an array of field names.
mcpear::get_list()
Retrieves a list of data.
mcpear::get_one()
Retrieves a single value.
mcpear::get_row()
Retrieves a row of data.
mcpear::get_table()
Returns table contents.
mcpear::get_total()
Returns table row count.
mcpear::next_id()
Returns next insert id.
mcpear::update()
Updates table rows.
mcpear::verify()
Returns the result or prints an error.

Class Details

[line 36]
HRDI database class.

An inherited class containing HRDI database specific actions. The class contains all of the mcpear methods but adds HRDI specific functionality.




[ Top ]


Class Methods


method add [line 45]

mixed add( array $values, string $table)

HRDI specific add function.

This function adds the creation date and time to the data and calls the parent's add() function.




Tags:

return:  Query result resource or FALSE on error


Overrides mcpear::add() (Adds a table row.)

Parameters:

array   $values   Associative array of keys and values
string   $table   Table name

[ Top ]

method datetime [line 107]

string datetime( )

ISO 8601 date and time.

This function returns an ISO 8601 date and time used for created/updated date and time.




Tags:

return:  ISO 8601 date and time


[ Top ]

method make_history [line 84]

mixed make_history( string $table, mixed $previous_data)

Creates a history entry.

This function creates an entry in the HRDI history table. The entry is made for the specified $table. The $previous_data is serialized and added to the entry. The previous data can be later unserialized using the PHP http://www.php.net/unserialize function.




Tags:

return:  Query result resource or FALSE on error


Parameters:

string   $table   The name of the table that was updated
mixed   $previous_data   The data before the updated

[ Top ]

method update [line 59]

mixed update( array $values, string $table, string $where_key)

HRDI specific update function.

This function adds a history entry for this update, adds the update date and time to the data and then calls the parent's update() function.




Tags:

return:  Query result resource or FALSE on error


Overrides mcpear::update() (Updates table rows.)

Parameters:

array   $values   Associative array of key values
string   $table   Table name
string   $where_key   Where clause

[ Top ]


Documentation generated on Tue, 23 Jan 2007 22:57:48 -0500 by phpDocumentor 1.3.0RC6