PHP Class Prado\Web\UI\WebControls\TTableStyle

TTableStyle represents the CSS style specific for HTML table.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends TStyle
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
_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.

Method Details

_getZappableSleepProps() protected méthode

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

addAttributesToRender() public méthode

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

copyFrom() public méthode

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

getBackImageUrl() public méthode

public getBackImageUrl ( ) : string
Résultat string the URL of the background image for the table

getBorderCollapse() public méthode

public getBorderCollapse ( ) : boolean
Résultat boolean whether the table borders should be collapsed. Defaults to false.

getCellPadding() public méthode

public getCellPadding ( ) : integer
Résultat integer cellpadding of the table. Defaults to -1, meaning not set.

getCellSpacing() public méthode

public getCellSpacing ( ) : integer
Résultat integer cellspacing of the table. Defaults to -1, meaning not set.

getGridLines() public méthode

public getGridLines ( ) : TTableGridLines
Résultat TTableGridLines the grid line setting of the table. Defaults to TTableGridLines::None.

getHorizontalAlign() public méthode

public getHorizontalAlign ( ) : THorizontalAlign
Résultat THorizontalAlign the horizontal alignment of the contents within the table, defaults to THorizontalAlign::NotSet.

mergeWith() public méthode

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

reset() public méthode

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

setBackImageUrl() public méthode

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

setBorderCollapse() public méthode

public setBorderCollapse ( $value )

setCellPadding() public méthode

public setCellPadding ( $value )

setCellSpacing() public méthode

public setCellSpacing ( $value )

setGridLines() public méthode

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

setHorizontalAlign() public méthode

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