getColumn() публичный Метод

gets column
public getColumn ( integer $colIndex ) : PHPRtfLite_Table_Column
$colIndex integer
Результат PHPRtfLite_Table_Column
Пример #1
0
 /**
  * gets cell width
  *
  * @return float
  */
 public function getWidth()
 {
     if ($this->_width) {
         return $this->_width;
     }
     return $this->_table->getColumn($this->_columnIndex)->getWidth();
 }
Пример #2
0
 /**
  * tests getColumn
  * @depends testGetColumn
  * @expectedException PHPRtfLite_Exception
  */
 public function testGetColumnWithInvalidIndex(PHPRtfLite_Table $table)
 {
     $this->assertType('PHPRtfLite_Table_Column', $table->getColumn(4));
 }