PHP Class ODTDataHandler

Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Свойство Type Description
$dataSource array

Méthodes publiques

Méthode 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 )

Méthodes protégées

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

Method Details

addCell() public méthode

public addCell ( $row, $cell )

addRow() public méthode

public addRow ( $table, $row )

alreadyInDataSource() public méthode

public alreadyInDataSource ( $objectType, $name )

createCell() protected méthode

protected createCell ( ) : ODTCell
Résultat ODTCell

createImage() public méthode

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

createRow() protected méthode

protected createRow ( ) : ODTRow
Résultat ODTRow

createSimpleText() protected méthode

protected createSimpleText ( $name ) : ODTSimpleText
$name
Résultat ODTSimpleText

createTable() protected méthode

protected createTable ( $tableName ) : ODTTable
$tableName
Résultat ODTTable

createText() public méthode

public createText ( $name, $data = null )

encodeTextForODT() public static méthode

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

fillTableData() public méthode

public fillTableData ( $table, $tableData )

generateSimpleTableHashData() public méthode

public generateSimpleTableHashData ( array $table ) : array
$table array
Résultat array

getDataSource() public méthode

public getDataSource ( ) : array
Résultat array

getSimpleTexts() public méthode

public getSimpleTexts ( ) : array
Résultat array

getTables() public méthode

public getTables ( ) : array
Résultat array

import() protected méthode

protected import ( $obj )
$obj

setAttribute() public méthode

public setAttribute ( $obj )

setObjType() public méthode

public setObjType ( $obj, $type )

setTableAndSimpleTextDataFromArray() public méthode

setTableCellData() public méthode

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

setTableRowData() public méthode

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

Property Details

$dataSource protected_oe property

protected array $dataSource
Résultat array