getColumn() public method

gets column
public getColumn ( integer $colIndex ) : PHPRtfLite_Table_Column
$colIndex integer
return PHPRtfLite_Table_Column
コード例 #1
0
ファイル: Cell.php プロジェクト: sbogdanov108/db_to_text
 /**
  * gets cell width
  *
  * @return float
  */
 public function getWidth()
 {
     if ($this->_width) {
         return $this->_width;
     }
     return $this->_table->getColumn($this->_columnIndex)->getWidth();
 }
コード例 #2
0
ファイル: TableTest.php プロジェクト: jfrank1500/curso_php
 /**
  * tests getColumn
  * @depends testGetColumn
  * @expectedException PHPRtfLite_Exception
  */
 public function testGetColumnWithInvalidIndex(PHPRtfLite_Table $table)
 {
     $this->assertType('PHPRtfLite_Table_Column', $table->getColumn(4));
 }