ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ILIAS\WebDAV\Mount\ObjectInstructions Class Reference
+ Inheritance diagram for ILIAS\WebDAV\Mount\ObjectInstructions:
+ Collaboration diagram for ILIAS\WebDAV\Mount\ObjectInstructions:

Public Member Functions

 __construct (Repository $a_repo, UriBuilder $a_uri_builder, ilSetting $a_settings, string $language, protected int $ref_id)
 
- Public Member Functions inherited from ILIAS\WebDAV\Mount\BaseInstructions
 __construct (protected Repository $repo, protected UriBuilder $uri_builder, protected ilSetting $settings, protected string $language)
 
 getMountInstructionsAsArray (array $mount_instructions=[])
 

Protected Member Functions

 fillPlaceholdersForMountInstructions (array $mount_instructions)
 
 fillPlaceholdersForMountInstructions (array $mount_instructions)
 

Protected Attributes

int $obj_id
 
string $obj_title
 

Detailed Description

Definition at line 26 of file ObjectInstructions.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\WebDAV\Mount\ObjectInstructions::__construct ( Repository  $a_repo,
UriBuilder  $a_uri_builder,
ilSetting  $a_settings,
string  $language,
protected int  $ref_id 
)

Definition at line 31 of file ObjectInstructions.php.

37 {
38 parent::__construct($a_repo, $a_uri_builder, $a_settings, $language);
39
40 // TODO: Change this to be more unit testable!
41 $this->obj_id = ilObject::_lookupObjectId($this->ref_id);
42 $this->obj_title = ilObject::_lookupTitle($this->obj_id);
43 }
static _lookupObjectId(int $ref_id)
static _lookupTitle(int $obj_id)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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

+ Here is the call graph for this function:

Member Function Documentation

◆ fillPlaceholdersForMountInstructions()

ILIAS\WebDAV\Mount\ObjectInstructions::fillPlaceholdersForMountInstructions ( array  $mount_instructions)
protected

Reimplemented from ILIAS\WebDAV\Mount\BaseInstructions.

Definition at line 45 of file ObjectInstructions.php.

45 : array
46 {
47 foreach ($mount_instructions as $title => $mount_instruction) {
48 $mount_instruction = str_replace(
49 [
50 '[WEBFOLDER_ID]',
51 '[WEBFOLDER_TITLE]',
52 '[WEBFOLDER_URI]',
53 '[WEBFOLDER_URI_KONQUEROR]',
54 '[WEBFOLDER_URI_NAUTILUS]',
55 '[ADMIN_MAIL]',
56 ],
57 [
58 (string) $this->ref_id,
59 $this->obj_title,
60 $this->uri_builder->getWebDavDefaultUri($this->ref_id),
61 $this->uri_builder->getWebDavKonquerorUri($this->ref_id),
62 $this->uri_builder->getWebDavNautilusUri($this->ref_id),
63 $this->settings->get('admin_email'),
64 ],
65 $mount_instruction
66 );
67
68 $mount_instructions[$title] = $mount_instruction;
69 }
70
71 return $mount_instructions;
72 }

Field Documentation

◆ $obj_id

int ILIAS\WebDAV\Mount\ObjectInstructions::$obj_id
protected

Definition at line 28 of file ObjectInstructions.php.

◆ $obj_title

string ILIAS\WebDAV\Mount\ObjectInstructions::$obj_title
protected

Definition at line 29 of file ObjectInstructions.php.


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