Skip to content

Options ​

php
final readonly class PPTXenigma\Options

The settings of an extraction. The object is immutable: use the named arguments to change a setting.

new Options(sign: '§', duplicates: Duplicates::KeepLast, htmlTags: ['bold' => 'strong']);

Source: src/Options.php

Constants ​

NameValueDescription
DEFAULT_HTML_TAGS['bold' => 'b', 'italic' => 'i', 'underline' => 'u', 'strike' => 's', 'superscript' => 'sup', 'subscript' => 'sub']The HTML tag of each style.
DEFAULT_SIGN'¤'The sign that opens and closes the voice-overs when no other one is set.

Methods ​

__construct() ​

php
public function __construct(string $sign = self::DEFAULT_SIGN, Duplicates $duplicates = Duplicates::Error, array $htmlTags = [], array $linkSchemes = ['http', 'https', 'mailto', 'tel'], string $endSign = null)
ParameterDescription
$signthe sign that opens a voice-over, "¤" by default; with null, the sign is the text of the first notes, which are then not searched
$duplicateswhat to do when a speaker uses the same reference twice
$htmlTagsthe HTML tag of a style, by style: bold, italic, underline, strike, superscript and subscript
$linkSchemesthe schemes of the links that are kept, in lowercase; the other links are written as plain text
$endSignthe sign that closes a voice-over; without it, the sign that opens it closes it too

Throws InvalidArgumentException when a setting is not valid

htmlTag() ​

php
public function htmlTag(string $style): string

The HTML tag of a style: bold, italic, underline, strike, superscript or subscript.

Documentation of 1.0.0 , built from 5dd2e99 on 1.0.0 by pipeline #37507528046 on 2026-10-06.