PHP Класс Prado\Web\UI\WebControls\TTableStyle

TTableStyle represents the CSS style specific for HTML table.
С версии: 3.0
Автор: Qiang Xue ([email protected])
Наследование: extends TStyle
Показать файл Открыть проект

Открытые методы

Метод Описание
addAttributesToRender ( $writer ) Adds attributes related to CSS styles to renderer.
copyFrom ( $style ) Copies the fields in a new style to this style.
getBackImageUrl ( ) : string
getBorderCollapse ( ) : boolean
getCellPadding ( ) : integer
getCellSpacing ( ) : integer
getGridLines ( ) : TTableGridLines
getHorizontalAlign ( ) : THorizontalAlign
mergeWith ( $style ) Merges the style with a new one.
reset ( ) Sets the style attributes to default values.
setBackImageUrl ( $value ) Sets the URL of the background image for the table
setBorderCollapse ( $value )
setCellPadding ( $value )
setCellSpacing ( $value )
setGridLines ( $value ) Sets the grid line style of the table.
setHorizontalAlign ( $value ) Sets the horizontal alignment of the contents within the table.

Защищенные методы

Метод Описание
_getZappableSleepProps ( &$exprops ) Returns an array with the names of all variables of this object that should NOT be serialized because their value is the default one or useless to be cached for the next page loads.

Описание методов

_getZappableSleepProps() защищенный Метод

Reimplement in derived classes to add new variables, but remember to also to call the parent implementation first.
protected _getZappableSleepProps ( &$exprops )

addAttributesToRender() публичный Метод

This method overrides the parent implementation.
public addAttributesToRender ( $writer )

copyFrom() публичный Метод

If a style field is set in the new style, the corresponding field in this style will be overwritten.
public copyFrom ( $style )

getBackImageUrl() публичный Метод

public getBackImageUrl ( ) : string
Результат string the URL of the background image for the table

getBorderCollapse() публичный Метод

public getBorderCollapse ( ) : boolean
Результат boolean whether the table borders should be collapsed. Defaults to false.

getCellPadding() публичный Метод

public getCellPadding ( ) : integer
Результат integer cellpadding of the table. Defaults to -1, meaning not set.

getCellSpacing() публичный Метод

public getCellSpacing ( ) : integer
Результат integer cellspacing of the table. Defaults to -1, meaning not set.

getGridLines() публичный Метод

public getGridLines ( ) : TTableGridLines
Результат TTableGridLines the grid line setting of the table. Defaults to TTableGridLines::None.

getHorizontalAlign() публичный Метод

public getHorizontalAlign ( ) : THorizontalAlign
Результат THorizontalAlign the horizontal alignment of the contents within the table, defaults to THorizontalAlign::NotSet.

mergeWith() публичный Метод

If a style field is not set in this style, it will be overwritten by the new one.
public mergeWith ( $style )

reset() публичный Метод

This method overrides the parent implementation by resetting additional TTableStyle specific attributes.
public reset ( )

setBackImageUrl() публичный Метод

Sets the URL of the background image for the table
public setBackImageUrl ( $value )

setBorderCollapse() публичный Метод

public setBorderCollapse ( $value )

setCellPadding() публичный Метод

public setCellPadding ( $value )

setCellSpacing() публичный Метод

public setCellSpacing ( $value )

setGridLines() публичный Метод

Sets the grid line style of the table.
public setGridLines ( $value )

setHorizontalAlign() публичный Метод

Sets the horizontal alignment of the contents within the table.
public setHorizontalAlign ( $value )