phpdftk API Documentation

ListBlock
in package

FinalYes

Bullet or numbered list of plain strings. Each item is rendered as one marker (bullet glyph or running number) followed by the wrapped item text.

Nested lists are a planned future extension; for now, build flat lists and call Pdf::addList() multiple times for hand-rolled hierarchy.

Named ListBlock (not List) to avoid colliding with PHP's reserved list keyword.

Table of Contents

Properties

$items  : array<string|int, mixed>
$numbered  : bool

Methods

__construct()  : mixed

Properties

$items read-only

public array<string|int, mixed> $items

$numbered read-only

public bool $numbered = false

Methods

__construct()

public __construct(array<int, string> $items[, bool $numbered = false ]) : mixed
Parameters
$items : array<int, string>
$numbered : bool = false

        
On this page

Search results