PHP Class PHPRtfLite_Table_Row

Author: Steffen Zeidler ([email protected])
ファイルを表示 Open project: phprtflite/phprtflite Class Usage Examples

Protected Properties

Property Type Description
$_cells PHPRtfLite_Table_Cell[] instances of PHPRtfLite_Table_Cell
$_height float row height
$_rowIndex integer row index in table
$_table PHPRtfLite_Table

Public Methods

Method Description
__construct ( PHPRtfLite_Table $table, integer $rowIndex, float $height = null ) constructor
free ( )
getCellByIndex ( integer $columnIndex ) : PHPRtfLite_Table_Cell Gets cell instance for the given column index
getHeight ( ) : float gets row height
getRowIndex ( ) : integer gets row index of row
setFont ( PHPRtfLite_Font $font ) sets default font for all cells in the row
setHeight ( float $height ) sets row height

Method Details

__construct() public method

constructor
public __construct ( PHPRtfLite_Table $table, integer $rowIndex, float $height = null )
$table PHPRtfLite_Table
$rowIndex integer
$height float

free() public method

public free ( )

getCellByIndex() public method

Gets cell instance for the given column index
public getCellByIndex ( integer $columnIndex ) : PHPRtfLite_Table_Cell
$columnIndex integer
return PHPRtfLite_Table_Cell

getHeight() public method

gets row height
public getHeight ( ) : float
return float

getRowIndex() public method

gets row index of row
public getRowIndex ( ) : integer
return integer

setFont() public method

sets default font for all cells in the row
public setFont ( PHPRtfLite_Font $font )
$font PHPRtfLite_Font

setHeight() public method

sets row height
public setHeight ( float $height )
$height float

Property Details

$_cells protected_oe property

instances of PHPRtfLite_Table_Cell
protected PHPRtfLite_Table_Cell[] $_cells
return PHPRtfLite_Table_Cell[]

$_height protected_oe property

row height
protected float $_height
return float

$_rowIndex protected_oe property

row index in table
protected int $_rowIndex
return integer

$_table protected_oe property

protected PHPRtfLite_Table $_table
return PHPRtfLite_Table