PHPRtfLite_Table::addColumn PHP Méthode

addColumn() public méthode

adds column
public addColumn ( float $width ) : PHPRtfLite_Table_Column
$width float column width
Résultat PHPRtfLite_Table_Column
    public function addColumn($width)
    {
        $column = new PHPRtfLite_Table_Column($this, $this->getColumnsCount() + 1, $width);
        $this->_columns[] = $column;
        return $column;
    }

Usage Example

Exemple #1
0
 /**
  * test addColumn
  * @depends testAddColumnList
  */
 public function testAddColumn(PHPRtfLite_Table $table)
 {
     $table->addColumn(7);
     $this->assertEquals(3, $table->getColumnsCount());
     return $table;
 }