Documentation

TableCellStyle
in package

Tags
author

Yewhen Khoptynskyi khoptynskyi@gmail.com

Table of Contents

Constants

DEFAULT_ALIGN  = 'left'
ALIGN_MAP  = ['left' => \STR_PAD_RIGHT, 'center' => \STR_PAD_BOTH, 'right' => \STR_PAD_LEFT]
TAG_OPTIONS  = ['fg', 'bg', 'options']

Properties

$options  : array<string|int, mixed>

Methods

__construct()  : mixed
getCellFormat()  : string|null
getOptions()  : array<string|int, mixed>
getPadByAlign()  : int
getTagOptions()  : array<string|int, string>
Gets options we need for tag for example fg, bg.

Constants

ALIGN_MAP

private mixed ALIGN_MAP = ['left' => \STR_PAD_RIGHT, 'center' => \STR_PAD_BOTH, 'right' => \STR_PAD_LEFT]

Properties

$options

private array<string|int, mixed> $options = ['fg' => 'default', 'bg' => 'default', 'options' => null, 'align' => self::DEFAULT_ALIGN, 'cellFormat' => null]

Methods

__construct()

public __construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

getCellFormat()

public getCellFormat() : string|null
Return values
string|null

getOptions()

public getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTagOptions()

Gets options we need for tag for example fg, bg.

public getTagOptions() : array<string|int, string>
Return values
array<string|int, string>

        
On this page

Search results