SwatDB/SwatDBRecordsetWrapper.php
public function reindex()
    {
        if ($this->index_field !== null) {
            $this->objects_by_index = array();
            $index_field = $this->index_field;
            foreach ($this->objects as $object) {
                if (isset($object->$index_field)) {
                    $this->objects_by_index[$object->$index_field] = $object;
                }
            }
        }
    }
public function reindex()
    {
        if ($this->index_field !== null) {
            $this->objects_by_index = array();
            $index_field = $this->index_field;
            foreach ($this->objects as $object) {
                if (isset($object->$index_field)) {
                    $this->objects_by_index[$object->$index_field] = $object;
                }
            }
        }
    }
public function reindex ( ) { if ( $ this -> index_field !== null ) { $ this -> objects_by_index = array ( ) ; $ index_field = $ this -> index_field ; foreach ( $ this -> objects as $ object ) { if ( isset ( $ object -> $ index_field ) ) { $ this -> objects_by_index [ $ object -> $ index_field ] = $ object ; } } } }
Reindexes this recordset

Reindexing is useful when you have added new data-objects to this
recordset. Reindexing is only done if this recordset has a defined
index field.
Reindexes this recordset