public function setDataByIndex($line, $data)
    {
        $this->data[$line] = $data;
        $this->filteredData = null;
    }
public function setDataByIndex($line, $data)
    {
        $this->data[$line] = $data;
        $this->filteredData = null;
    }
public function setDataByIndex ( $ line , $ data ) { $ this -> data [ $ line ] = $ data ; $ this -> filteredData = null ; }
sets new data to line

@param $index
@param $data
sets new data to line