Todo List
Implements interfaces:
Several methods are build to search for an object with criterians. This map is specific to PMO_Object as it use the interface PMO_Object
[line 59]
PMO_MyMap __construct( )
void add( $row)
int count( )
array fetch( )
Null is returned at the end and the iterator is reset.
The array is not poped, it's only a cursor that move an index and return the results.
PMO_Object fetchTable( $tablename)
PMO_Map getMapByObject( PMO_Object $object)
this new map only contains rows that are relative to the passed in object
PMO_Map getMapByObjectByValue( PMO_Object $object)
this new map will only contain rows that match the filter
Other values can be NULL as they are not used.
PMO_Map getMapByTable( string $tablename)
PMO_Map getMapByValue( string $tablename, string $attribute, string $value)
Search is done only on one fields. Faster than getMapByObjectByValue but less powerfull.
PMO_Map getMapLinked( PMO_Object $object)
PMO_Map getMapRelated( PMO_Object $object, string $tablename)
PMO_Object getObjectByObject( PMO_Object $object)
All primary keys must be set, it's more powerfull than getObjectByValue but slower too. If object is not found, return an exception
PMO_Map getObjectByValue( string $tablename, string $attribute, string $value)
If object is not found, returns an exception
void __get( $value)