ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilObjFileUploadDropzone Class Reference
+ Collaboration diagram for ilObjFileUploadDropzone:

Public Member Functions

 __construct (int $target_ref_id, string $content=null)
 
 isUploadAllowed (string $obj_type)
 
 getDropzoneHtml ()
 

Protected Member Functions

 getUIFactory ()
 
 getLanguage ()
 
 getRefinery ()
 

Protected Attributes

ilObjectDefinition $definition
 
ilCtrlInterface $ctrl
 
UploadHandler $upload_handler
 
ilLanguage $language
 
ilAccess $access
 
UIServices $ui
 
ILIAS Refinery Factory $refinery
 
int $target_ref_id
 
string $content
 

Private Member Functions

 isCopyrightSelectionActive ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjFileUploadDropzone::__construct ( int  $target_ref_id,
string  $content = null 
)

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

References $content, $DIC, $target_ref_id, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), ILIAS\Repository\refinery(), and ILIAS\Repository\ui().

45  {
46  global $DIC;
47 
48  $this->definition = $DIC['objDefinition'];
49  $this->language = $DIC->language();
50  $this->language->loadLanguageModule('file');
51  $this->access = $DIC->access();
52  $this->ctrl = $DIC->ctrl();
53  $this->ui = $DIC->ui();
54  $this->refinery = $DIC->refinery();
55 
56  $this->upload_handler = new ilObjFileUploadHandlerGUI();
57  $this->target_ref_id = $target_ref_id;
58  $this->content = $content;
59  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ getDropzoneHtml()

ilObjFileUploadDropzone::getDropzoneHtml ( )

Definition at line 145 of file class.ilObjFileUploadDropzone.php.

References ILIAS\Repository\ui().

145  : string
146  {
147  return $this->ui->renderer()->render($this->getDropzone());
148  }
+ Here is the call graph for this function:

◆ getLanguage()

ilObjFileUploadDropzone::getLanguage ( )
protected

Definition at line 155 of file class.ilObjFileUploadDropzone.php.

References $language.

155  : \ilLanguage
156  {
157  return $this->language;
158  }
language handling

◆ getRefinery()

ilObjFileUploadDropzone::getRefinery ( )
protected

Definition at line 160 of file class.ilObjFileUploadDropzone.php.

References $refinery.

161  {
162  return $this->refinery;
163  }
Builds data types.
Definition: Factory.php:35

◆ getUIFactory()

ilObjFileUploadDropzone::getUIFactory ( )
protected

Definition at line 150 of file class.ilObjFileUploadDropzone.php.

References ILIAS\Repository\ui().

151  {
152  return $this->ui->factory();
153  }
+ Here is the call graph for this function:

◆ isCopyrightSelectionActive()

ilObjFileUploadDropzone::isCopyrightSelectionActive ( )
private

◆ isUploadAllowed()

ilObjFileUploadDropzone::isUploadAllowed ( string  $obj_type)

Definition at line 136 of file class.ilObjFileUploadDropzone.php.

References ILIAS\Repository\access().

136  : bool
137  {
138  if ($this->definition->isContainer($obj_type) && $obj_type !== "orgu") {
139  return $this->access->checkAccess('create_file', '', $this->target_ref_id, 'file');
140  }
141 
142  return false;
143  }
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccess ilObjFileUploadDropzone::$access
protected

Definition at line 37 of file class.ilObjFileUploadDropzone.php.

◆ $content

string ilObjFileUploadDropzone::$content
protected

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

Referenced by __construct().

◆ $ctrl

ilCtrlInterface ilObjFileUploadDropzone::$ctrl
protected

Definition at line 34 of file class.ilObjFileUploadDropzone.php.

◆ $definition

ilObjectDefinition ilObjFileUploadDropzone::$definition
protected

Definition at line 33 of file class.ilObjFileUploadDropzone.php.

◆ $language

ilLanguage ilObjFileUploadDropzone::$language
protected

Definition at line 36 of file class.ilObjFileUploadDropzone.php.

Referenced by getLanguage().

◆ $refinery

ILIAS Refinery Factory ilObjFileUploadDropzone::$refinery
protected

Definition at line 39 of file class.ilObjFileUploadDropzone.php.

Referenced by getRefinery().

◆ $target_ref_id

int ilObjFileUploadDropzone::$target_ref_id
protected

Definition at line 41 of file class.ilObjFileUploadDropzone.php.

Referenced by __construct().

◆ $ui

UIServices ilObjFileUploadDropzone::$ui
protected

Definition at line 38 of file class.ilObjFileUploadDropzone.php.

◆ $upload_handler

UploadHandler ilObjFileUploadDropzone::$upload_handler
protected

Definition at line 35 of file class.ilObjFileUploadDropzone.php.


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