ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilWebDAVObjectMountInstructions Class Reference
+ Inheritance diagram for ilWebDAVObjectMountInstructions:
+ Collaboration diagram for ilWebDAVObjectMountInstructions:

Public Member Functions

 __construct (ilWebDAVMountInstructionsRepository $a_repo, ilWebDAVUriBuilder $a_uri_builder, ilSetting $a_settings, string $language, protected int $ref_id)
 
- Public Member Functions inherited from ilWebDAVBaseMountInstructions
 __construct (protected ilWebDAVMountInstructionsRepository $repo, protected ilWebDAVUriBuilder $uri_builder, protected ilSetting $settings, protected string $language)
 
 getMountInstructionsAsArray (array $mount_instructions=[])
 

Protected Member Functions

 fillPlaceholdersForMountInstructions (array $mount_instructions)
 
- Protected Member Functions inherited from ilWebDAVBaseMountInstructions
 fillPlaceholdersForMountInstructions (array $mount_instructions)
 

Protected Attributes

int $obj_id
 
string $obj_title
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVObjectMountInstructions::__construct ( ilWebDAVMountInstructionsRepository  $a_repo,
ilWebDAVUriBuilder  $a_uri_builder,
ilSetting  $a_settings,
string  $language,
protected int  $ref_id 
)

Definition at line 30 of file class.ilWebDAVObjectMountInstructions.php.

References ILIAS\GlobalScreen\Provider\__construct(), ilObject\_lookupObjectId(), and ilObject\_lookupTitle().

36  {
37  parent::__construct($a_repo, $a_uri_builder, $a_settings, $language);
38 
39  // TODO: Change this to be more unit testable!
40  $this->obj_id = ilObject::_lookupObjectId($this->ref_id);
41  $this->obj_title = ilObject::_lookupTitle($this->obj_id);
42  }
static _lookupTitle(int $obj_id)
static _lookupObjectId(int $ref_id)
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ fillPlaceholdersForMountInstructions()

ilWebDAVObjectMountInstructions::fillPlaceholdersForMountInstructions ( array  $mount_instructions)
protected

Definition at line 44 of file class.ilWebDAVObjectMountInstructions.php.

References ILIAS\Repository\settings().

44  : array
45  {
46  foreach ($mount_instructions as $title => $mount_instruction) {
47  $mount_instruction = str_replace("[WEBFOLDER_ID]", (string) $this->ref_id, $mount_instruction);
48  $mount_instruction = str_replace("[WEBFOLDER_TITLE]", $this->obj_title, $mount_instruction);
49  $mount_instruction = str_replace(
50  "[WEBFOLDER_URI]",
51  $this->uri_builder->getWebDavDefaultUri($this->ref_id),
52  $mount_instruction
53  );
54  $mount_instruction = str_replace(
55  "[WEBFOLDER_URI_KONQUEROR]",
56  $this->uri_builder->getWebDavKonquerorUri($this->ref_id),
57  $mount_instruction
58  );
59  $mount_instruction = str_replace(
60  "[WEBFOLDER_URI_NAUTILUS]",
61  $this->uri_builder->getWebDavNautilusUri($this->ref_id),
62  $mount_instruction
63  );
64  $mount_instruction = str_replace("[ADMIN_MAIL]", $this->settings->get("admin_email"), $mount_instruction);
65 
66  $mount_instructions[$title] = $mount_instruction;
67  }
68 
69  // TODO: Implement fillPlaceholdersForMountInstructions() method.
70  return $mount_instructions;
71  }
+ Here is the call graph for this function:

Field Documentation

◆ $obj_id

int ilWebDAVObjectMountInstructions::$obj_id
protected

Definition at line 27 of file class.ilWebDAVObjectMountInstructions.php.

◆ $obj_title

string ilWebDAVObjectMountInstructions::$obj_title
protected

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


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