phpdftk API Documentation

ListStyle
in package

FinalYes

Styling for {@see ListBlock} rendering.

Defaults produce a familiar bullet style: solid round bullet , 18pt indent, 2pt vertical gap between items. The bullet alternates by depth to mimic standard outline styles: → cycle.

For numbered lists, $numberSuffix is appended to the index (1., 2., 3. by default).

Table of Contents

Properties

$bulletGlyphs  : array<string|int, mixed>
$indent  : float
$itemSpacing  : float
$numberSuffix  : string

Methods

__construct()  : mixed
bulletAt()  : string

Properties

$bulletGlyphs read-only

public array<string|int, mixed> $bulletGlyphs = ['•', '◦', '▪']

$indent read-only

public float $indent = 18.0

$itemSpacing read-only

public float $itemSpacing = 3.0

$numberSuffix read-only

public string $numberSuffix = '.'

Methods

__construct()

public __construct([float $indent = 18.0 ][, float $itemSpacing = 3.0 ][, array<int, string> $bulletGlyphs = ['•', '◦', '▪'] ][, string $numberSuffix = '.' ]) : mixed
Parameters
$indent : float = 18.0
$itemSpacing : float = 3.0
$bulletGlyphs : array<int, string> = ['•', '◦', '▪']

One bullet per nesting level; cycles after the last entry.

$numberSuffix : string = '.'

bulletAt()

public bulletAt(int $depth) : string
Parameters
$depth : int
Return values
string

        
On this page

Search results