protected function calcTotalWidth() {


        $totalWidth = 0;

        // go through all the widths
        for ($w=0; $w<count($this->columnDefinitions); ++$w) {
            
            // add the column's width
            $totalWidth += $this->columnDefinitions[$w]->getWidth();
        }

        // return the total
        return $totalWidth;

    }
protected function calcTotalWidth() {


        $totalWidth = 0;

        // go through all the widths
        for ($w=0; $w<count($this->columnDefinitions); ++$w) {
            
            // add the column's width
            $totalWidth += $this->columnDefinitions[$w]->getWidth();
        }

        // return the total
        return $totalWidth;

    }
protected function calcTotalWidth ( ) { $ totalWidth = 0 ; // go through all the widths for ( $ w = 0 ; $ w < count ( $ this -> columnDefinitions ) ; ++ $ w ) { // add the column's width $ totalWidth += $ this -> columnDefinitions [ $ w ] -> getWidth ( ) ; } // return the total return $ totalWidth ; }
Simply add up all the column widths
@return int
Simply add up all the column widths