ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjSearchSettingsReadmeGUI Class Reference
+ Collaboration diagram for ilObjSearchSettingsReadmeGUI:

Public Member Functions

 __construct (ilCtrlInterface $ctrl, FileDelivery $file_delivery)
 
 executeCommand ()
 

Protected Member Functions

 deliverFile ()
 

Protected Attributes

const string PATH = __DIR__ . '/../../../../WebServices/RPC/lib/README.md'
 
ilCtrlInterface $ctrl
 
FileDelivery $file_delivery
 

Detailed Description

Definition at line 24 of file class.ilObjSearchSettingsReadmeGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjSearchSettingsReadmeGUI::__construct ( ilCtrlInterface  $ctrl,
FileDelivery  $file_delivery 
)

Definition at line 31 of file class.ilObjSearchSettingsReadmeGUI.php.

References $ctrl, $file_delivery, and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

Member Function Documentation

◆ deliverFile()

ilObjSearchSettingsReadmeGUI::deliverFile ( )
protected

Definition at line 55 of file class.ilObjSearchSettingsReadmeGUI.php.

55 : void
56 {
57 $this->file_delivery->delivery()->inline(
58 Streams::ofResource(fopen(self::PATH, 'rb')),
59 basename(self::PATH),
60 'text/markdown'
61 );
62 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ executeCommand()

ilObjSearchSettingsReadmeGUI::executeCommand ( )

Definition at line 39 of file class.ilObjSearchSettingsReadmeGUI.php.

39 : void
40 {
41 $cmd = $this->ctrl->getCmd();
42
43 switch ($cmd) {
44 case 'deliverFile':
45 $this->deliverFile();
46 break;
47
48 default:
50 'Invalid command for ilObjSearchSettingsReadmeGUI: ' . $cmd
51 );
52 }
53 }

References ILIAS\Repository\ctrl(), and deliverFile().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrlInterface ilObjSearchSettingsReadmeGUI::$ctrl
protected

Definition at line 28 of file class.ilObjSearchSettingsReadmeGUI.php.

Referenced by __construct().

◆ $file_delivery

FileDelivery ilObjSearchSettingsReadmeGUI::$file_delivery
protected

Definition at line 29 of file class.ilObjSearchSettingsReadmeGUI.php.

Referenced by __construct().

◆ PATH

const string ilObjSearchSettingsReadmeGUI::PATH = __DIR__ . '/../../../../WebServices/RPC/lib/README.md'
protected

Definition at line 26 of file class.ilObjSearchSettingsReadmeGUI.php.


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