ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilWebDAVObjectMountInstructions Class Reference

Class ilWebDAVMountInstructions. 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 $a_repo, ilWebDAVUriBuilder $a_uri_builder, ilSetting $a_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

 $user_agent
 
 $request_uri
 
 $http_host
 
 $script_name
 
 $client_id
 
 $path_to_template
 
 $clientOSFlavor
 
 $clientOS
 
 $settings
 
 $ref_id
 
 $obj_id
 
 $obj_title
 
 $document_repository
 
 $uri_provider
 
- Protected Attributes inherited from ilWebDAVBaseMountInstructions
 $repo
 
 $uri_builder
 
 $settings
 
 $language
 

Detailed Description

Class ilWebDAVMountInstructions.

This class creates the page and links for the WebDAV mount instruction page

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

Definition at line 11 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 32 of file class.ilWebDAVObjectMountInstructions.php.

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

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

References settings().

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

Field Documentation

◆ $client_id

ilWebDAVObjectMountInstructions::$client_id
protected

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

◆ $clientOS

ilWebDAVObjectMountInstructions::$clientOS
protected

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

◆ $clientOSFlavor

ilWebDAVObjectMountInstructions::$clientOSFlavor
protected

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

◆ $document_repository

ilWebDAVObjectMountInstructions::$document_repository
protected

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

◆ $http_host

ilWebDAVObjectMountInstructions::$http_host
protected

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

◆ $obj_id

ilWebDAVObjectMountInstructions::$obj_id
protected

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

◆ $obj_title

ilWebDAVObjectMountInstructions::$obj_title
protected

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

◆ $path_to_template

ilWebDAVObjectMountInstructions::$path_to_template
protected

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

◆ $ref_id

ilWebDAVObjectMountInstructions::$ref_id
protected

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

◆ $request_uri

ilWebDAVObjectMountInstructions::$request_uri
protected

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

◆ $script_name

ilWebDAVObjectMountInstructions::$script_name
protected

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

◆ $settings

ilWebDAVObjectMountInstructions::$settings
protected

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

◆ $uri_provider

ilWebDAVObjectMountInstructions::$uri_provider
protected

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

◆ $user_agent

ilWebDAVObjectMountInstructions::$user_agent
protected

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


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