Class: I2CE Entry (Development): Difference between revisions
From IHRIS Wiki
(Created page with '{{otherversions|Class: I2CE_Entry}} This article describes the class ''I2CE_Entry'' . *Location: Part of the module forms in the package …') |
No edit summary |
||
Line 1: | Line 1: | ||
{{otherversions|Class: I2CE_Entry}} | {{otherversions|Class: I2CE_Entry}} | ||
This article describes the class ''I2CE_Entry'' . | This article describes the class ''I2CE_Entry'' . | ||
*Location: Part of the module [[I2CE Module List (Development)# | *Location: Part of the module [[I2CE Module List (Development)#Fields|Fields]] in the package [https://launchpad.net/i2ce I2CE] 4.0-dev | ||
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_Entry.php#L33 modules/Forms/lib/I2CE_Entry.php] on line 33 | *Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_Entry.php#L33 modules/Forms/modules/Fields/lib/I2CE_Entry.php] on line 33 | ||
*Author: Luke Duncan <lduncan@intrahealth.org> | *Author: Luke Duncan <lduncan@intrahealth.org> | ||
*Since: v2.0.0 | *Since: v2.0.0 | ||
Line 10: | Line 10: | ||
===$date=== | ===$date=== | ||
The date this entry was added. | The date this entry was added. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_Entry.php#L38 i2ce/modules/Forms/lib/I2CE_Entry.php] on line 38 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_Entry.php#L38 i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php] on line 38 | ||
*Type: public [[Class: I2CE_Date (Development) | I2CE_Date]] $date | *Type: public [[Class: I2CE_Date (Development) | I2CE_Date]] $date | ||
===$who=== | ===$who=== | ||
The user id of the person who made this entry. | The user id of the person who made this entry. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_Entry.php#L42 i2ce/modules/Forms/lib/I2CE_Entry.php] on line 42 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_Entry.php#L42 i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php] on line 42 | ||
*Type: public integer $who | *Type: public integer $who | ||
===$change_type=== | ===$change_type=== | ||
The type of change for this entry. | The type of change for this entry. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_Entry.php#L46 i2ce/modules/Forms/lib/I2CE_Entry.php] on line 46 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_Entry.php#L46 i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php] on line 46 | ||
*Type: public integer $change_type | *Type: public integer $change_type | ||
===$value=== | ===$value=== | ||
The value for this entry. | The value for this entry. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_Entry.php#L50 i2ce/modules/Forms/lib/I2CE_Entry.php] on line 50 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_Entry.php#L50 i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php] on line 50 | ||
*Type: public [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $value | *Type: public [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $value | ||
Line 31: | Line 31: | ||
===__construct()=== | ===__construct()=== | ||
Create a new instance of a I2CE_Entry. This will usually be done by the [[Class: I2CE_FormField (Development) | ]] object when it needs access to the history for this field. | Create a new instance of a I2CE_Entry. This will usually be done by the [[Class: I2CE_FormField (Development) | ]] object when it needs access to the history for this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_Entry.php#L61 i2ce/modules/Forms/lib/I2CE_Entry.php] on line 61 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_Entry.php#L61 i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php] on line 61 | ||
*Signature: public function __construct($date,$who,$change_type,$value) | *Signature: public function __construct($date,$who,$change_type,$value) | ||
*Parameters: | *Parameters: | ||
Line 40: | Line 40: | ||
===getValue()=== | ===getValue()=== | ||
Return the value of this entry | Return the value of this entry | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_Entry.php#L72 i2ce/modules/Forms/lib/I2CE_Entry.php] on line 72 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_Entry.php#L72 i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php] on line 72 | ||
*Signature: public function getValue() | *Signature: public function getValue() | ||
*Returns: mixed; | *Returns: mixed; |
Latest revision as of 07:55, 3 August 2010
For other versions, see Class: I2CE_Entry (versions) .
This article describes the class I2CE_Entry .
- Location: Part of the module Fields in the package I2CE 4.0-dev
- Source: Defined in the file modules/Forms/modules/Fields/lib/I2CE_Entry.php on line 33
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v2.0.0
- See: I2CE_FormField
Class for representing an entry in the database. Multiple entries may exist for any value to track all changes since the record was created.
Variables
$date
The date this entry was added.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php on line 38
- Type: public I2CE_Date $date
$who
The user id of the person who made this entry.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php on line 42
- Type: public integer $who
$change_type
The type of change for this entry.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php on line 46
- Type: public integer $change_type
$value
The value for this entry.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php on line 50
- Type: public mixed $value
Methods
__construct()
Create a new instance of a I2CE_Entry. This will usually be done by the object when it needs access to the history for this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php on line 61
- Signature: public function __construct($date,$who,$change_type,$value)
- Parameters:
getValue()
Return the value of this entry
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_Entry.php on line 72
- Signature: public function getValue()
- Returns: mixed;