ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ShortlinkInfoGUI Class Reference
+ Inheritance diagram for ShortlinkInfoGUI:
+ Collaboration diagram for ShortlinkInfoGUI:

Public Member Functions

 executeCommand ()
 
 getTokensToKeep ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\GUI\AbstractPonsGUI
 __construct (protected Pons $pons)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\GUI\PonsGUI
 __construct (Pons $pons)
 
 executeCommand ()
 
 getTokensToKeep ()
 

Private Member Functions

 index ()
 

Additional Inherited Members

- Data Fields inherited from ILIAS\GlobalScreen\GUI\PonsGUI
const CMD_DEFAULT = 'index'
 

Detailed Description

Member Function Documentation

◆ executeCommand()

ShortlinkInfoGUI::executeCommand ( )
Returns
bool true if you handled this command aka you were the CtrlClass, otherwise false

Implements ILIAS\GlobalScreen\GUI\PonsGUI.

Definition at line 41 of file ShortlinkInfoGUI.php.

41 : bool
42 {
43 if ($this->pons->handle(ilObjStaticUrlServiceGUI::TAB_INFO)) {
44 return true;
45 }
46
47 match ($cmd = $this->pons->flow()->getCommand(self::CMD_DEFAULT)) {
48 self::CMD_DEFAULT => $this->index(),
49 default => $this->pons->out()->outString(
50 'Unknown command: ' . $cmd
51 ),
52 };
53 return true;
54 }

References index(), and ilObjStaticUrlServiceGUI\TAB_INFO.

+ Here is the call graph for this function:

◆ getTokensToKeep()

ShortlinkInfoGUI::getTokensToKeep ( )

Implements ILIAS\GlobalScreen\GUI\PonsGUI.

Definition at line 56 of file ShortlinkInfoGUI.php.

56 : array
57 {
58 return [];
59 }

◆ index()

ShortlinkInfoGUI::index ( )
private

Definition at line 31 of file ShortlinkInfoGUI.php.

31 : void
32 {
33 $refinery = $this->pons->in()->refinery();
34 $content = file_get_contents(__DIR__ . '/../../CONFIGURATION.md');
35
36 $this->pons->out()->outString(
37 $refinery->string()->markdown(false)->toHTML()->transform($content)
38 );
39 }

References ILIAS\UI\examples\Layout\Page\Mail\$refinery.

Referenced by executeCommand().

+ Here is the caller graph for this function:

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