PHPRtfLite_Table::getColumn PHP Méthode

getColumn() public méthode

gets column
public getColumn ( integer $colIndex ) : PHPRtfLite_Table_Column
$colIndex integer
Résultat PHPRtfLite_Table_Column
    public function getColumn($colIndex)
    {
        if (isset($this->_columns[$colIndex - 1])) {
            return $this->_columns[$colIndex - 1];
        }
        throw new PHPRtfLite_Exception('Invalid column index for table: ' . $colIndex);
    }

Usage Example

Exemple #1
0
 /**
  * gets cell width
  *
  * @return float
  */
 public function getWidth()
 {
     if ($this->_width) {
         return $this->_width;
     }
     return $this->_table->getColumn($this->_columnIndex)->getWidth();
 }
All Usage Examples Of PHPRtfLite_Table::getColumn