Class: I2CE Entry: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 25: Line 25:
==Methods==
==Methods==
===__construct()===
===__construct()===
Create a new instance of a I2CE_Entry.
Create a new instance of a I2CE_Entry. This will usually be done by the [[Class: I2CE_FormField | I2CE_FormField]] object when it needs access to the history for this field.
 
This will usually be done by the [[Class: I2CE_FormField | I2CE_FormField]] object when it needs access to the history for this field.
*Signature: public function __construct($date,$who,$change_type,$value)
*Signature: public function __construct($date,$who,$change_type,$value)
Parameters:
*Parameters:
* [[Class: I2CE_Date | I2CE_Date]] $date
** [[Class: I2CE_Date | I2CE_Date]] $date
* integer $who
** integer $who
* integer $change_type
** integer $change_type
* [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $value
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $value
===getValue()===
===getValue()===
Return the value of this entry
Return the value of this entry

Revision as of 23:41, 16 October 2009

This article desrcibes the class I2CE_Entry.

Class for representing an entry in the database. Multiple entries may exist for any I2CE_FormField value to track all changes since the record was created.

Variables

$date

The date this entry was added.

$who

The user id of the person who made this entry.

  • Type: public nteger $who

$change_type

The type of change for this entry.

  • Type: public nteger $change_type

$value

The value for this entry.

Methods

__construct()

Create a new instance of a I2CE_Entry. This will usually be done by the I2CE_FormField object when it needs access to the history for this field.

  • Signature: public function __construct($date,$who,$change_type,$value)
  • Parameters:

getValue()

Return the value of this entry

  • Signature: public function getValue()
  • Returns: mixed;