Свойство | Тип | Описание | |
---|---|---|---|
$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 |