Skip to content

Reference

tilttek/reference-tables

Every public type of the package, with its role. The types marked internal may change in any version.

Tables

TypeRole
ReferenceTableA table: columns, rows found by key or by range, die, source, system, category and page.
ColumnA column: key, heading by locale and kind.
ColumnKindText, number or dice.
CellOne value of a row: a text by locale, an integer or a dice expression.
RowA row: its key or its range, and its cells by column.
LookupBy key or by range.
RangeThe values a row covers, both ends included, read and printed.
TableCatalogueThe tables of a site, by key, system and category, with their sources.

Rolling

TypeRole
Rolling\TableRollerThe service: rolls a table with its die and a modifier, enters a die rolled at the table, rolls a cell.
Rolling\TableRollA roll: the die's value, the modifier, the total, the row, its position and the dice kept.
Contract\TableObserverTold of each roll.
Event\TableRolledA roll, by the table's key, the row's position, the total and whether it was entered.

Searching

TypeRole
Search\TableSearchThe service: finds a text in names, descriptions, row keys and text cells.
Search\SearchHitWhere a text was found: table, row position, column and text.

Reading documents

TypeRole
Format\TableReaderThe service: reads a YAML or JSON document into a TableCatalogue.
Format\SyntaxYAML or JSON, and the syntax of a file by its extension.

Exceptions

TypeRole
Exception\ReferenceTablesExceptionThe interface of every exception of the library.
Exception\InvalidTableA value that breaks a rule.
Exception\InvalidDocumentA document that cannot be read, at its place.
Exception\UnknownTableA table, a column or a cell that is not there.
Exception\UnknownRowA key or a value no row answers.
Exception\LookupRefusedA lookup or a roll the table does not allow.

Internal

TypeRole
Internal\CheckThe checks of keys and labels. Internal.
Internal\FieldsOne mapping of a document, read field by field. Internal.
Internal\FoldA text folded for a search. Internal.