public function clear()
    {
        $this->list = null;
        if (is_array($this->secondary_indexes)) {
            foreach ($this->secondary_indexes as $index) {
                $index->clear();
            }
        }
    }
public function clear()
    {
        $this->list = null;
        if (is_array($this->secondary_indexes)) {
            foreach ($this->secondary_indexes as $index) {
                $index->clear();
            }
        }
    }
public function clear ( ) { $ this -> list = null ; if ( is_array ( $ this -> secondary_indexes ) ) { foreach ( $ this -> secondary_indexes as $ index ) { $ index -> clear ( ) ; } } }
Empty the list and reset all indexes.
Empty the list and reset all indexes .