PHP Class ODTDataHandler

Mostrar archivo Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Property Type Description
$dataSource array

Public Methods

Method Description
addCell ( $row, $cell )
addRow ( $table, $row )
alreadyInDataSource ( $objectType, $name )
createImage ( $name, $type, $binarySource )
createText ( $name, $data = null )
encodeTextForODT ( $text ) : string Wrapper function to consistently encode text where appropriate for template functionality
fillTableData ( $table, $tableData )
generateSimpleTableHashData ( array $table ) : array
getDataSource ( ) : array
getSimpleTexts ( ) : array
getTables ( ) : array
setAttribute ( $obj )
setObjType ( $obj, $type )
setTableAndSimpleTextDataFromArray ( array $data )
setTableCellData ( $table, $row, $col, $cellData )
setTableRowData ( $table, $row, $rowData )

Protected Methods

Method Description
createCell ( ) : ODTCell
createRow ( ) : ODTRow
createSimpleText ( $name ) : ODTSimpleText
createTable ( $tableName ) : ODTTable
import ( $obj )

Method Details

addCell() public method

public addCell ( $row, $cell )

addRow() public method

public addRow ( $table, $row )

alreadyInDataSource() public method

public alreadyInDataSource ( $objectType, $name )

createCell() protected method

protected createCell ( ) : ODTCell
return ODTCell

createImage() public method

public createImage ( $name, $type, $binarySource )

createRow() protected method

protected createRow ( ) : ODTRow
return ODTRow

createSimpleText() protected method

protected createSimpleText ( $name ) : ODTSimpleText
$name
return ODTSimpleText

createTable() protected method

protected createTable ( $tableName ) : ODTTable
$tableName
return ODTTable

createText() public method

public createText ( $name, $data = null )

encodeTextForODT() public static method

Wrapper function to consistently encode text where appropriate for template functionality
public static encodeTextForODT ( $text ) : string
$text
return string

fillTableData() public method

public fillTableData ( $table, $tableData )

generateSimpleTableHashData() public method

public generateSimpleTableHashData ( array $table ) : array
$table array
return array

getDataSource() public method

public getDataSource ( ) : array
return array

getSimpleTexts() public method

public getSimpleTexts ( ) : array
return array

getTables() public method

public getTables ( ) : array
return array

import() protected method

protected import ( $obj )
$obj

setAttribute() public method

public setAttribute ( $obj )

setObjType() public method

public setObjType ( $obj, $type )

setTableAndSimpleTextDataFromArray() public method

setTableCellData() public method

public setTableCellData ( $table, $row, $col, $cellData )

setTableRowData() public method

public setTableRowData ( $table, $row, $rowData )

Property Details

$dataSource protected_oe property

protected array $dataSource
return array