public function renameColumn($oldName, $newName)
    {
        foreach ($this->rows as $row) {
            $row->renameColumn($oldName, $newName);

            $subTable = $row->getSubtable();
            if ($subTable) {
                $subTable->renameColumn($oldName, $newName);
            }
        }
        if (!is_null($this->summaryRow)) {
            $this->summaryRow->renameColumn($oldName, $newName);
        }
        if (!is_null($this->totalsRow)) {
            $this->totalsRow->renameColumn($oldName, $newName);
        }
    }
public function renameColumn($oldName, $newName)
    {
        foreach ($this->rows as $row) {
            $row->renameColumn($oldName, $newName);

            $subTable = $row->getSubtable();
            if ($subTable) {
                $subTable->renameColumn($oldName, $newName);
            }
        }
        if (!is_null($this->summaryRow)) {
            $this->summaryRow->renameColumn($oldName, $newName);
        }
        if (!is_null($this->totalsRow)) {
            $this->totalsRow->renameColumn($oldName, $newName);
        }
    }
public function renameColumn ( $ oldName , $ newName ) { foreach ( $ this -> rows as $ row ) { $ row -> renameColumn ( $ oldName , $ newName ) ; $ subTable = $ row -> getSubtable ( ) ; if ( $ subTable ) { $ subTable -> renameColumn ( $ oldName , $ newName ) ; } } if ( ! is_null ( $ this -> summaryRow ) ) { $ this -> summaryRow -> renameColumn ( $ oldName , $ newName ) ; } if ( ! is_null ( $ this -> totalsRow ) ) { $ this -> totalsRow -> renameColumn ( $ oldName , $ newName ) ; } }
Rename a column in every row. This change is applied recursively to all subtables.

@param string $oldName Old column name.
@param string $newName New column name.
Rename a column in every row . This change is applied recursively to all subtables .