|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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...
Inheritance diagram for ILIAS\Data\Text\Shape:
Collaboration diagram for ILIAS\Data\Text\Shape: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 | ) |
InvalidArgumentException if $text is not compliant.
Implemented in ILIAS\Data\Text\Shape\Markdown.
| 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.
Referenced by ILIAS\Data\Text\TextBase\__construct().
Here is the caller graph for this function:| 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.
LogicException if $text does not match this shape.
| 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.
LogicException if $text does not match this shape.