Documentation is available at class_container.php
- <?php
- class container extends base {
- var $objects;
- var $retrievedObjects;
- function container() {
- $this->objects = array();
- $this->retrievedObjects = array();
- }
- function register_object( &$object, $key = NULL ) {
- $this->objects[ $key ? $key : $object->get_attribute('id') ] = true;
- $this->retrievedObjects[ $key ? $key : $object->get_attribute('id') ] =& $object;
- }
- function unregister( $id ) {
- unset( $this->objects[$id] );
- unset( $this->retrievedObjects[$id] );
- }
- function output() {
- //this is essentially a debugging function
- echo "objects: ";
- print_array( $this->objects );
- echo "retrieved objects: ";
- foreach( $this->retrievedObjects as $object ) { print_r($object); }
- }
- }
- ?>
Documentation generated on Tue, 24 May 2005 03:57:28 -0400 by phpDocumentor 1.3.0RC3