ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Methods in this interface should mostly be called by the according methods on Text
instances, most consumer code shouldn't need to bother with Shape
directly.
More...
Public Member Functions | |
fromString (string $text) | |
isRawStringCompliant (string $text) | |
toHTML (Text $text) | |
It should almost never be required to call this directly on shape. More... | |
toPlainText (Text $text) | |
It should almost never be required to call this directly on shape. More... | |
getMarkup () | |
Methods in this interface should mostly be called by the according methods on Text
instances, most consumer code shouldn't need to bother with Shape
directly.
Only exception is fromString
which acts as an entrypoint into the logic of Text.
ILIAS\Data\Text\Shape::fromString | ( | string | $text | ) |
Implemented in ILIAS\Data\Text\Shape\Markdown, ILIAS\Data\Text\Shape\SimpleDocumentMarkdown, and ILIAS\Data\Text\Shape\WordOnlyMarkdown.
ILIAS\Data\Text\Shape::getMarkup | ( | ) |
Implemented in ILIAS\Data\Text\Shape\Markdown.
ILIAS\Data\Text\Shape::isRawStringCompliant | ( | string | $text | ) |
Implemented in ILIAS\Data\Text\Shape\Markdown, ILIAS\Data\Text\Shape\SimpleDocumentMarkdown, and ILIAS\Data\Text\Shape\WordOnlyMarkdown.
Referenced by ILIAS\Data\Text\TextBase\__construct().
ILIAS\Data\Text\Shape::toHTML | ( | Text | $text | ) |
It should almost never be required to call this directly on shape.
There is an according method on the Text
interface, which should be prefered as it guarantees to use the correct Shape
. This method still is on Shape
for code organisation reasons: Shape
binds all transformations between formats together.
ILIAS\Data\Text\Shape::toPlainText | ( | Text | $text | ) |
It should almost never be required to call this directly on shape.
There is an according method on the Text
interface, which should be prefered as it guarantees to use the correct Shape
. This method still is on Shape
for code organisation reasons: Shape
binds all transformations between formats together.