public function rebuildIndex()
    {
        $this->rowsIndexByLabel = array();
        $this->rebuildIndexContinuously = true;

        foreach ($this->rows as $id => $row) {
            $label = $row->getColumn('label');
            if ($label !== false) {
                $this->rowsIndexByLabel[$label] = $id;
            }
        }

        if ($this->summaryRow) {
            $label = $this->summaryRow->getColumn('label');
            if ($label !== false) {
                $this->rowsIndexByLabel[$label] = DataTable::ID_SUMMARY_ROW;
            }
        }

        $this->indexNotUpToDate = false;
    }
public function rebuildIndex()
    {
        $this->rowsIndexByLabel = array();
        $this->rebuildIndexContinuously = true;

        foreach ($this->rows as $id => $row) {
            $label = $row->getColumn('label');
            if ($label !== false) {
                $this->rowsIndexByLabel[$label] = $id;
            }
        }

        if ($this->summaryRow) {
            $label = $this->summaryRow->getColumn('label');
            if ($label !== false) {
                $this->rowsIndexByLabel[$label] = DataTable::ID_SUMMARY_ROW;
            }
        }

        $this->indexNotUpToDate = false;
    }
public function rebuildIndex ( ) { $ this -> rowsIndexByLabel = array ( ) ; $ this -> rebuildIndexContinuously = true ; foreach ( $ this -> rows as $ id => $ row ) { $ label = $ row -> getColumn ( 'label' ) ; if ( $ label !== false ) { $ this -> rowsIndexByLabel [ $ label ] = $ id ; } } if ( $ this -> summaryRow ) { $ label = $ this -> summaryRow -> getColumn ( 'label' ) ; if ( $ label !== false ) { $ this -> rowsIndexByLabel [ $ label ] = DataTable :: ID_SUMMARY_ROW ; } } $ this -> indexNotUpToDate = false ; }
Rebuilds the index used to lookup a row by label
@internal
Rebuilds the index used to lookup a row by label