Class

eZMatrix

class eZMatrix

Properties

$Name
$Matrix
$NumColumns
$NumRows
$Cells

Methods

__construct(string $name, int|bool $numRows = false, eZMatrixDefinition|bool $matrixColumnDefinition = false)

adjustColumnIndex($columnIndex, $newColumnIndex)

setColumnIndex($columnIndex, $newColumnIndex)

addColumn($columnDefinition)

addColumnToMatrix($columnDefinition)

addColumnToCells($columnDefinition)

adjustColumnName($columnIndex, $newColumnName)

setColumnName($columnIndex, $newColumnName)

adjustColumnsToDefinition($classColumnsDefinition)

buildReorderRuleForColumn($columns, $pos)

buildReorderRules()

reorderColumns()

hasRuleForColumn($rules, $pos)

setColumn($colIdx, $column)

column($colIdx)

copyDataBetweenColumns($firstColIdx, $secondColIdx)

removeUselessColumns($matrixColumnDefinition)

getColumnsToRemove($matrixColumnsDefinition)

removeColumn($columnDefinition)

setName($name)

name()

attributes()

hasAttribute($name)

attribute($name)

addRow($beforeIndex = false, $addCount = 1)

removeRow($rowNum)

decodeXML($xmlString)

domString($domDocument)

xmlString()

Details

at line 25
public __construct(string $name, int|bool $numRows = false, eZMatrixDefinition|bool $matrixColumnDefinition = false)

Parameters

string $name
int|bool $numRows
eZMatrixDefinition|bool $matrixColumnDefinition

at line 72
public adjustColumnIndex($columnIndex, $newColumnIndex)

Parameters

$columnIndex
$newColumnIndex

at line 87
public setColumnIndex($columnIndex, $newColumnIndex)

Parameters

$columnIndex
$newColumnIndex

at line 124
public addColumn($columnDefinition)

Parameters

$columnDefinition

at line 134
public addColumnToMatrix($columnDefinition)

Parameters

$columnDefinition

at line 146
public addColumnToCells($columnDefinition)

Parameters

$columnDefinition

at line 170
public adjustColumnName($columnIndex, $newColumnName)

Parameters

$columnIndex
$newColumnName

at line 185
public setColumnName($columnIndex, $newColumnName)

Parameters

$columnIndex
$newColumnName

at line 200
public adjustColumnsToDefinition($classColumnsDefinition)

Parameters

$classColumnsDefinition

at line 225
public buildReorderRuleForColumn($columns, $pos)

Parameters

$columns
$pos

at line 244
public buildReorderRules()

at line 266
public reorderColumns()

at line 300
public hasRuleForColumn($rules, $pos)

Parameters

$rules
$pos

at line 321
public setColumn($colIdx, $column)

Parameters

$colIdx
$column

at line 334
public column($colIdx)

Parameters

$colIdx

at line 410
public copyDataBetweenColumns($firstColIdx, $secondColIdx)

Parameters

$firstColIdx
$secondColIdx

at line 443
public removeUselessColumns($matrixColumnDefinition)

Parameters

$matrixColumnDefinition

at line 463
public getColumnsToRemove($matrixColumnsDefinition)

Parameters

$matrixColumnsDefinition

at line 523
public removeColumn($columnDefinition)

Parameters

$columnDefinition

at line 574
public setName($name)

Parameters

$name

at line 582
public name()

at line 587
public attributes()

at line 598
public hasAttribute($name)

Parameters

$name

at line 603
public attribute($name)

Parameters

$name

at line 643
public addRow($beforeIndex = false, $addCount = 1)

Parameters

$beforeIndex
$addCount

at line 679
public removeRow($rowNum)

Parameters

$rowNum

at line 692
public decodeXML($xmlString)

Parameters

$xmlString

at line 802
public domString($domDocument)

Parameters

$domDocument

at line 825
public xmlString()