프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$serializedStyleToStyleIdMappingTable | [SERIALIZED_STYLE] => [STYLE_ID] mapping table, keeping track of the registered styles | ||
$styleIdToStyleMappingTable | [STYLE_ID] => [STYLE] mapping table, keeping track of the registered styles |
메소드 | 설명 | |
---|---|---|
__construct ( |
||
applyExtraStylesIfNeeded ( |
Apply additional styles if the given row needs it. | |
registerStyle ( |
Registers the given style as a used style. |
메소드 | 설명 | |
---|---|---|
applyWrapTextIfCellContainsNewLine ( |
Set the "wrap text" option if a cell of the given row contains a new line. | |
getDefaultStyle ( ) : |
Returns the default style | |
getRegisteredStyles ( ) : |
||
getStyleFromSerializedStyle ( string $serializedStyle ) : |
Returns the registered style associated to the given serialization. | |
hasStyleAlreadyBeenRegistered ( |
Returns whether the given style has already been registered. |
public __construct ( |
||
$defaultStyle |
public applyExtraStylesIfNeeded ( |
||
$style | The original style | |
$dataRow | array | The row the style will be applied to |
리턴 | The updated style |
protected applyWrapTextIfCellContainsNewLine ( |
||
$style | The original style | |
$dataRow | array | The row the style will be applied to |
리턴 | The eventually updated style |
protected getDefaultStyle ( ) : |
||
리턴 | Default style |
protected getRegisteredStyles ( ) : |
||
리턴 | List of registered styles |
protected getStyleFromSerializedStyle ( string $serializedStyle ) : |
||
$serializedStyle | string | The serialized style from which the actual style should be fetched from |
리턴 |
protected hasStyleAlreadyBeenRegistered ( |
||
$style | ||
리턴 | boolean |
public registerStyle ( |
||
$style | The style to be registered | |
리턴 | The registered style, updated with an internal ID. |
protected $serializedStyleToStyleIdMappingTable |