public function updateDataCollection($entries)
    {
        $process = false;
        $data = [];
        $start = ($this->currentPage - 1) * $this->dataCollection->getPageSize();
        foreach ($entries as $key => $value) {
            if (substr($key, 0, 6) == "entry_") {
                $array = explode("_", str_replace("entry_", "", $key));
                setType($value, $array[1]);
                $data[$array[0]] = $value;
                $process = true;
            }
        }
        if ($process) {
            $lines = $this->dataCollection->getData($this->currentPage);
            $counter = 0;
            foreach ($lines as $i => $lineData) {
                $newData = $lineData;
                foreach ($this->columns as $columnData) {
                    if ($columnData instanceof InputColumn) {
                        $newData[$columnData->getKey()] = $data[$counter];
                    }
                }
                $this->dataCollection->setDataByIndex($start + $counter, $newData);
                $counter++;
            }
        }
    }
public function updateDataCollection($entries)
    {
        $process = false;
        $data = [];
        $start = ($this->currentPage - 1) * $this->dataCollection->getPageSize();
        foreach ($entries as $key => $value) {
            if (substr($key, 0, 6) == "entry_") {
                $array = explode("_", str_replace("entry_", "", $key));
                setType($value, $array[1]);
                $data[$array[0]] = $value;
                $process = true;
            }
        }
        if ($process) {
            $lines = $this->dataCollection->getData($this->currentPage);
            $counter = 0;
            foreach ($lines as $i => $lineData) {
                $newData = $lineData;
                foreach ($this->columns as $columnData) {
                    if ($columnData instanceof InputColumn) {
                        $newData[$columnData->getKey()] = $data[$counter];
                    }
                }
                $this->dataCollection->setDataByIndex($start + $counter, $newData);
                $counter++;
            }
        }
    }
public function updateDataCollection ( $ entries ) { $ process = false ; $ data = [ ] ; $ start = ( $ this -> currentPage - 1 ) * $ this -> dataCollection -> getPageSize ( ) ; foreach ( $ entries as $ key => $ value ) { if ( substr ( $ key , 0 , 6 ) == "entry_" ) { $ array = explode ( "_" , str_replace ( "entry_" , "" , $ key ) ) ; setType ( $ value , $ array [ 1 ] ) ; $ data [ $ array [ 0 ] ] = $ value ; $ process = true ; } } if ( $ process ) { $ lines = $ this -> dataCollection -> getData ( $ this -> currentPage ) ; $ counter = 0 ; foreach ( $ lines as $ i => $ lineData ) { $ newData = $ lineData ; foreach ( $ this -> columns as $ columnData ) { if ( $ columnData instanceof InputColumn ) { $ newData [ $ columnData -> getKey ( ) ] = $ data [ $ counter ] ; } } $ this -> dataCollection -> setDataByIndex ( $ start + $ counter , $ newData ) ; $ counter ++ ; } } }
Updates dataCollection from entries.
@param $entries
Updates dataCollection from entries .