ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilWebDAVObjectMountInstructions Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilWebDAVObjectMountInstructions:
+ Collaboration diagram for ilWebDAVObjectMountInstructions:

Public Member Functions

 __construct (ilWebDAVMountInstructionsRepository $a_repo, ilWebDAVUriBuilder $a_uri_builder, ilSetting $a_settings, String $language, int $a_ref_id)
 
- Public Member Functions inherited from ilWebDAVBaseMountInstructions
 __construct (ilWebDAVMountInstructionsRepository $repo, ilWebDAVUriBuilder $uri_builder, ilSetting $settings, 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 $ref_id
 
int $obj_id
 
string $obj_title
 
- Protected Attributes inherited from ilWebDAVBaseMountInstructions
ilWebDAVMountInstructionsRepository $repo
 
ilWebDAVUriBuilder $uri_builder
 
ilSetting $settings
 
string $language
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

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

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

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVObjectMountInstructions::__construct ( ilWebDAVMountInstructionsRepository  $a_repo,
ilWebDAVUriBuilder  $a_uri_builder,
ilSetting  $a_settings,
String  $language,
int  $a_ref_id 
)

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

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

37  {
38  parent::__construct($a_repo, $a_uri_builder, $a_settings, $language);
39 
40  $this->ref_id = $a_ref_id;
41 
42  // TODO: Change this to be more unit testable!
43  $this->obj_id = ilObject::_lookupObjectId($this->ref_id);
44  $this->obj_title = ilObject::_lookupTitle($this->obj_id);
45  }
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 47 of file class.ilWebDAVObjectMountInstructions.php.

References ILIAS\Repository\settings().

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

Field Documentation

◆ $obj_id

int ilWebDAVObjectMountInstructions::$obj_id
protected

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

◆ $obj_title

string ilWebDAVObjectMountInstructions::$obj_title
protected

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

◆ $ref_id

int ilWebDAVObjectMountInstructions::$ref_id
protected

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


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