public function setColumns(array $indexColumns)
    {
        $this->indexColumns = array();
        $this->indexColumnSizes = array();
        foreach ($indexColumns as $col) {
            $this->addColumn($col);
        }
    }
public function setColumns(array $indexColumns)
    {
        $this->indexColumns = array();
        $this->indexColumnSizes = array();
        foreach ($indexColumns as $col) {
            $this->addColumn($col);
        }
    }
public function setColumns ( array $ indexColumns ) { $ this -> indexColumns = array ( ) ; $ this -> indexColumnSizes = array ( ) ; foreach ( $ indexColumns as $ col ) { $ this -> addColumn ( $ col ) ; } }
Sets array of columns to use for index.

@param array $indexColumns Column[]
Sets array of columns to use for index .