ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Data\Text\MarkdownFactory Class Reference
+ Collaboration diagram for ILIAS\Data\Text\MarkdownFactory:

Public Member Functions

 __construct (protected Shape\Markdown $markdown_shape, protected Shape\SimpleDocumentMarkdown $simple_document_markdown_shape, protected Shape\WordOnlyMarkdown $word_only_markdown_shape)
 
 generic (string $markdown)
 
 simpleDocument (string $markdown)
 
 wordOnly (string $markdown)
 

Detailed Description

Definition at line 23 of file MarkdownFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\Text\MarkdownFactory::__construct ( protected Shape\Markdown  $markdown_shape,
protected Shape\SimpleDocumentMarkdown  $simple_document_markdown_shape,
protected Shape\WordOnlyMarkdown  $word_only_markdown_shape 
)

Definition at line 25 of file MarkdownFactory.php.

29  {
30  }

Member Function Documentation

◆ generic()

ILIAS\Data\Text\MarkdownFactory::generic ( string  $markdown)

Definition at line 32 of file MarkdownFactory.php.

32  : Markdown
33  {
34  return $this->markdown_shape->fromString($markdown);
35  }

◆ simpleDocument()

ILIAS\Data\Text\MarkdownFactory::simpleDocument ( string  $markdown)

Definition at line 37 of file MarkdownFactory.php.

References ILIAS\Data\Text\Shape\SimpleDocumentMarkdown\fromString().

37  : SimpleDocumentMarkdown
38  {
39  return $this->simple_document_markdown_shape->fromString($markdown);
40  }
+ Here is the call graph for this function:

◆ wordOnly()

ILIAS\Data\Text\MarkdownFactory::wordOnly ( string  $markdown)

Definition at line 42 of file MarkdownFactory.php.

References ILIAS\Data\Text\Shape\WordOnlyMarkdown\fromString().

42  : WordOnlyMarkdown
43  {
44  return $this->word_only_markdown_shape->fromString($markdown);
45  }
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: