ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilWebDAVMountInstructionsGUI Class Reference

Class ilWebDAVMountInstructionsGUI. More...

+ Collaboration diagram for ilWebDAVMountInstructionsGUI:

Public Member Functions

 __construct ()
 
 showMountInstructionPage ()
 

Protected Member Functions

 displayInstructionPage ($instruction_text)
 
 getInstructionTemplate ()
 

Protected Attributes

 $protocol_prefixes
 
 $base_url
 
 $ref_id
 
 $mount_instruction
 

Detailed Description

Class ilWebDAVMountInstructionsGUI.

This class represents the GUI for the WebDAV mount instructions page. It uses the ilWebDAVMountInstructions to generate its content

Author
Raphael Heer rapha.nosp@m.el.h.nosp@m.eer@h.nosp@m.slu..nosp@m.ch $Id$

Definition at line 14 of file class.ilWebDAVMountInstructionsGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVMountInstructionsGUI::__construct ( )

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

27 {
28 $this->mount_instruction = new ilWebDAVMountInstructions();
29 }
Class ilWebDAVMountInstructions.

Member Function Documentation

◆ displayInstructionPage()

ilWebDAVMountInstructionsGUI::displayInstructionPage (   $instruction_text)
protected

Definition at line 42 of file class.ilWebDAVMountInstructionsGUI.php.

43 {
44 global $DIC;
45
46 header('Content-Type: text/html; charset=UTF-8');
47 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
48 echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN\"\n";
49 echo " \"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd\">\n";
50 echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
51 echo " <head>\n";
52 echo " <title>" . sprintf($DIC->language()->txt('webfolder_instructions_titletext'), $this->mount_instruction->getWebfolderTitle()) . "</title>\n";
53 echo " </head>\n";
54 echo " <body>\n";
55 echo $instruction_text;
56 echo " </body>\n";
57 echo "</html>\n";
58 }
global $DIC
Definition: saml.php:7

References $DIC.

Referenced by showMountInstructionPage().

+ Here is the caller graph for this function:

◆ getInstructionTemplate()

ilWebDAVMountInstructionsGUI::getInstructionTemplate ( )
protected

Definition at line 60 of file class.ilWebDAVMountInstructionsGUI.php.

61 {
62 global $DIC;
63
64 $settings = new ilSetting('file_access');
65 $instruction_tpl = '';
66
67 if ($this->mount_instruction->instructionsTplFileExists()) {
68 $instruction_tpl = $this->mount_instruction->getInstructionsFromTplFile();
69 } elseif ($settings->get('custom_webfolder_instructions_enabled')) {
70 $instruction_tpl = $this->mount_instruction->getCustomInstruction();
71 }
72
73 if (strlen($instruction_tpl) == 0) {
74 $instruction_tpl = $this->mount_instruction->getDefaultInstruction();
75 }
76
77 return utf8_encode($instruction_tpl);
78 }
ILIAS Setting Class.

References $DIC.

Referenced by showMountInstructionPage().

+ Here is the caller graph for this function:

◆ showMountInstructionPage()

ilWebDAVMountInstructionsGUI::showMountInstructionPage ( )

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

32 {
33 global $DIC;
34
35 $instruction_tpl = $this->getInstructionTemplate();
36 $instruction_text = $this->mount_instruction->setInstructionPlaceholders($instruction_tpl);
37 $this->displayInstructionPage($instruction_text);
38
39 exit;
40 }
exit
Definition: backend.php:16

References $DIC, displayInstructionPage(), exit, and getInstructionTemplate().

+ Here is the call graph for this function:

Field Documentation

◆ $base_url

ilWebDAVMountInstructionsGUI::$base_url
protected

Definition at line 22 of file class.ilWebDAVMountInstructionsGUI.php.

◆ $mount_instruction

ilWebDAVMountInstructionsGUI::$mount_instruction
protected

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

◆ $protocol_prefixes

ilWebDAVMountInstructionsGUI::$protocol_prefixes
protected

Definition at line 21 of file class.ilWebDAVMountInstructionsGUI.php.

◆ $ref_id

ilWebDAVMountInstructionsGUI::$ref_id
protected

Definition at line 23 of file class.ilWebDAVMountInstructionsGUI.php.


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