ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Exercise\SampleSolution\SampleSolutionManager Class Reference
+ Collaboration diagram for ILIAS\Exercise\SampleSolution\SampleSolutionManager:

Public Member Functions

 __construct (int $ass_id, SampleSolutionRepository $repo, \ilExcSampleSolutionStakeholder $stakeholder, InternalDomainService $domain)
 
 importFromLegacyUpload (array $file_input)
 
 deliver ()
 
 getFilename ()
 
 cloneTo (int $to_ass_id)
 

Protected Member Functions

 getStakeholder ()
 

Protected Attributes

ilExcSampleSolutionStakeholder $stakeholder
 
int $ass_id
 
ILIAS FileUpload FileUpload $upload
 
InternalDomainService $domain
 
SampleSolutionRepository $repo
 

Detailed Description

Definition at line 26 of file SampleSolutionManager.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Exercise\SampleSolution\SampleSolutionManager::__construct ( int  $ass_id,
SampleSolutionRepository  $repo,
\ilExcSampleSolutionStakeholder  $stakeholder,
InternalDomainService  $domain 
)

Member Function Documentation

◆ cloneTo()

ILIAS\Exercise\SampleSolution\SampleSolutionManager::cloneTo ( int  $to_ass_id)

Definition at line 80 of file SampleSolutionManager.php.

82  : void {
83  // IRSS
84  if ($this->repo->hasFile($this->ass_id)) {
85  $this->repo->clone($this->ass_id, $to_ass_id);
86  }
87  }

◆ deliver()

ILIAS\Exercise\SampleSolution\SampleSolutionManager::deliver ( )

Definition at line 68 of file SampleSolutionManager.php.

68  : void
69  {
70  if ($this->repo->hasFile($this->ass_id)) {
71  $this->repo->deliverFile($this->ass_id);
72  }
73  }

◆ getFilename()

ILIAS\Exercise\SampleSolution\SampleSolutionManager::getFilename ( )

Definition at line 75 of file SampleSolutionManager.php.

75  : string
76  {
77  return $this->repo->getFilename($this->ass_id);
78  }

◆ getStakeholder()

ILIAS\Exercise\SampleSolution\SampleSolutionManager::getStakeholder ( )
protected

Definition at line 50 of file SampleSolutionManager.php.

References ILIAS\Exercise\SampleSolution\SampleSolutionManager\$stakeholder.

50  : ResourceStakeholder
51  {
52  return $this->stakeholder;
53  }

◆ importFromLegacyUpload()

ILIAS\Exercise\SampleSolution\SampleSolutionManager::importFromLegacyUpload ( array  $file_input)

Definition at line 56 of file SampleSolutionManager.php.

56  : string
57  {
58  if (!isset($file_input["tmp_name"])) {
59  return "";
60  }
61  return $this->repo->importFromLegacyUpload(
62  $this->ass_id,
63  $file_input,
64  $this->stakeholder
65  );
66  }

Field Documentation

◆ $ass_id

int ILIAS\Exercise\SampleSolution\SampleSolutionManager::$ass_id
protected

◆ $domain

InternalDomainService ILIAS\Exercise\SampleSolution\SampleSolutionManager::$domain
protected

◆ $repo

SampleSolutionRepository ILIAS\Exercise\SampleSolution\SampleSolutionManager::$repo
protected

◆ $stakeholder

ilExcSampleSolutionStakeholder ILIAS\Exercise\SampleSolution\SampleSolutionManager::$stakeholder
protected

◆ $upload

ILIAS FileUpload FileUpload ILIAS\Exercise\SampleSolution\SampleSolutionManager::$upload
protected

Definition at line 30 of file SampleSolutionManager.php.


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