Gumbo_Interface_Record
Record Interface
This Interface is responsible for representing a database table record. It provides methods to retrieve record information as well as manipulating the data. The record can be saved, removed, or a new one created.
Author(s): |
Michael Luster <mluster79@yahoo.com> |
License: | New BSD License |
Copyright: | Copyright (c) 2007, iBayou, Michael Luster |
Link: | http://sourceforge.net/projects/phpgumbo |
Version: | 0.0.1 |
Interface Methods
Adds (increments) to the current count columns value
Parameter(s):
- (string) $column :: count column name
- (int) $num :: increases by the supplied number
- precondition:
_isColumnCount ($column)
[ Top ]public string asXML ( [string $parent] ) [line 261]Returns the object as an XML formatted string
Parameter(s):
- (string) $parent :: parent element name
[ Top ]!isLoaded () - precondition:
isModified () - precondition:
!isReadOnly
[ Top ]public void decrement ( string $column, [int $num], [bool $allow_negative] ) [line 172]Wrapper to sub() method
Parameter(s):
- (string) $column :: count column name
- (int) $num :: decreases by the supplied number
- (bool) $allow_negative :: allows negative values
[ Top ]public mixed get ( string $column ) [line 200]Returns the value of a column
Parameter(s):
- (string) $column :: Column Name
[ Top ]public void increment ( string $column, [int $num] ) [line 155]Wrapper to add() method
Parameter(s):
- (string) $column :: count column name
- (int) $num :: increases by the supplied number
[ Top ]!isReadOnly () - precondition:
isLoaded ()
[ Top ]public void loadXML ( string $xml, [string $parent] ) [line 93]Loads an XML string, but only the first level of the parent
Parameter(s):
- (string) $xml
- (string) $parent :: name of top level XML element
[ Top ]public void reset ( ) [line 131]Resets the object by removing the values from the modified array
[ Top ]isLoaded () - precondition:
isModified () - precondition:
!isReadOnly ()
[ Top ]public void setReadOnly ( bool $val ) [line 140]Sets the object as read only
Parameter(s):
- (bool) $val
[ Top ]public void sub ( string $column, [int $num], [bool $allow_negative] ) [line 164]Subtracts (decrement) one from the count column value
Parameter(s):
- (string) $column :: count column name
- (int) $num :: decreases by the supplied number
- (bool) $allow_negative :: allows negative values
- precondition:
_isColumnCount ($column)
[ Top ]public void unload ( [bool $erase_all] ) [line 99]Clears the object values, leaves the columns structure
Parameter(s):
- (bool) $erase_all :: clears extra values from memory
[ Top ]public mixed __get ( string $column ) [line 68]Returns the raw value of the column name
Parameter(s):
- (string) $column
[ Top ]public bool __isset ( string $column ) [line 75]Returns if the Column is set
Parameter(s):
- (string) $column
[ Top ]public void __set ( string $column, mixed $val ) [line 55]Sets the value of a table column
Parameter(s):
- (string) $column
- (mixed) $val
[ Top ]public void __unset ( string $column ) [line 61]Unsets the value of the supplied table column
Parameter(s):
- (string) $column
[ Top ]