getColumns() public method

gets table columns
public getColumns ( ) : PHPRtfLite_Table_Column[]
return PHPRtfLite_Table_Column[]
示例#1
0
文件: Row.php 项目: naivists/PHPUnit
 /**
  * sets default font for all cells in the row
  *
  * @param PHPRtfLite_Font $font
  */
 public function setFont(PHPRtfLite_Font $font)
 {
     $columns = $this->_table->getColumns();
     foreach ($columns as $i => $column) {
         $cell = $this->_table->getCell($this->_rowIndex, $column->getColumnIndex());
         $cell->setFont($font);
     }
 }