ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilLearningSequenceSettings Class Reference

Settings for an LSO (like abstract, extro) More...

+ Collaboration diagram for ilLearningSequenceSettings:

Public Member Functions

 __construct (int $obj_id, string $abstract='', string $extro='', ?string $abstract_image=null, ?string $extro_image=null, bool $members_gallery=false)
 
 getObjId ()
 
 getAbstract ()
 
 withAbstract (string $abstract)
 
 getExtro ()
 
 withExtro (string $extro)
 
 getAbstractImage ()
 
 withAbstractImage (?string $path=null)
 
 getExtroImage ()
 
 withExtroImage (?string $path=null)
 
 getUploads ()
 
 withUpload (array $upload_info, string $which)
 
 getDeletions ()
 
 withDeletion (string $which)
 
 getMembersGallery ()
 
 withMembersGallery (bool $members_gallery)
 

Protected Attributes

int $obj_id
 
string $abstract
 
string $extro
 
string $abstract_image
 
string $extro_image
 
array $uploads = []
 
array $deletions = []
 
bool $members_gallery
 

Detailed Description

Settings for an LSO (like abstract, extro)

Definition at line 24 of file class.ilLearningSequenceSettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilLearningSequenceSettings::__construct ( int  $obj_id,
string  $abstract = '',
string  $extro = '',
?string  $abstract_image = null,
?string  $extro_image = null,
bool  $members_gallery = false 
)

Member Function Documentation

◆ getAbstract()

◆ getAbstractImage()

◆ getDeletions()

ilLearningSequenceSettings::getDeletions ( )
Returns
string[]

Definition at line 130 of file class.ilLearningSequenceSettings.php.

References $deletions.

Referenced by ilLearningSequenceSettingsDB\store().

130  : array
131  {
132  return $this->deletions;
133  }
+ Here is the caller graph for this function:

◆ getExtro()

◆ getExtroImage()

◆ getMembersGallery()

◆ getObjId()

◆ getUploads()

ilLearningSequenceSettings::getUploads ( )
Returns
array<string, array>

Definition at line 115 of file class.ilLearningSequenceSettings.php.

References $uploads.

Referenced by ilLearningSequenceSettingsDB\store().

115  : array
116  {
117  return $this->uploads;
118  }
+ Here is the caller graph for this function:

◆ withAbstract()

ilLearningSequenceSettings::withAbstract ( string  $abstract)

Definition at line 69 of file class.ilLearningSequenceSettings.php.

References $abstract.

Referenced by ilLearningSequenceSettingsTest\testWithAbstract(), and LSSettingsTest\testWithAbstract().

70  {
71  $clone = clone $this;
72  $clone->abstract = $abstract;
73  return $clone;
74  }
Settings for an LSO (like abstract, extro)
+ Here is the caller graph for this function:

◆ withAbstractImage()

ilLearningSequenceSettings::withAbstractImage ( ?string  $path = null)

Definition at line 93 of file class.ilLearningSequenceSettings.php.

References $path.

Referenced by ilLearningSequenceFilesystem\delete_image(), ilLearningSequenceFilesystem\moveUploaded(), ilLearningSequenceSettingsTest\testWithAbstractImage(), and LSSettingsTest\testWithAbstractImage().

94  {
95  $clone = clone $this;
96  $clone->abstract_image = $path;
97  return $clone;
98  }
$path
Definition: ltiservices.php:29
Settings for an LSO (like abstract, extro)
+ Here is the caller graph for this function:

◆ withDeletion()

ilLearningSequenceSettings::withDeletion ( string  $which)

Definition at line 135 of file class.ilLearningSequenceSettings.php.

136  {
137  $clone = clone $this;
138  $clone->deletions[] = $which;
139  return $clone;
140  }
Settings for an LSO (like abstract, extro)

◆ withExtro()

ilLearningSequenceSettings::withExtro ( string  $extro)

Definition at line 81 of file class.ilLearningSequenceSettings.php.

References $extro.

Referenced by ilLearningSequenceSettingsTest\testWithExtro(), and LSSettingsTest\testWithExtro().

82  {
83  $clone = clone $this;
84  $clone->extro = $extro;
85  return $clone;
86  }
Settings for an LSO (like abstract, extro)
+ Here is the caller graph for this function:

◆ withExtroImage()

ilLearningSequenceSettings::withExtroImage ( ?string  $path = null)

Definition at line 105 of file class.ilLearningSequenceSettings.php.

References $path.

Referenced by ilLearningSequenceFilesystem\delete_image(), ilLearningSequenceFilesystem\moveUploaded(), ilLearningSequenceSettingsTest\testWithExtroImage(), and LSSettingsTest\testWithExtroImage().

106  {
107  $clone = clone $this;
108  $clone->extro_image = $path;
109  return $clone;
110  }
$path
Definition: ltiservices.php:29
Settings for an LSO (like abstract, extro)
+ Here is the caller graph for this function:

◆ withMembersGallery()

ilLearningSequenceSettings::withMembersGallery ( bool  $members_gallery)

Definition at line 147 of file class.ilLearningSequenceSettings.php.

References $members_gallery.

Referenced by ilLearningSequenceSettingsTest\testWithMembersGallery(), and LSSettingsTest\testWithMembersGallery().

148  {
149  $clone = clone $this;
150  $clone->members_gallery = $members_gallery;
151  return $clone;
152  }
Settings for an LSO (like abstract, extro)
+ Here is the caller graph for this function:

◆ withUpload()

ilLearningSequenceSettings::withUpload ( array  $upload_info,
string  $which 
)

Definition at line 120 of file class.ilLearningSequenceSettings.php.

121  {
122  $clone = clone $this;
123  $clone->uploads[$which] = $upload_info;
124  return $clone;
125  }
Settings for an LSO (like abstract, extro)

Field Documentation

◆ $abstract

string ilLearningSequenceSettings::$abstract
protected

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

Referenced by __construct(), getAbstract(), and withAbstract().

◆ $abstract_image

string ilLearningSequenceSettings::$abstract_image
protected

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

Referenced by __construct().

◆ $deletions

array ilLearningSequenceSettings::$deletions = []
protected

Definition at line 40 of file class.ilLearningSequenceSettings.php.

Referenced by getDeletions().

◆ $extro

string ilLearningSequenceSettings::$extro
protected

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

Referenced by __construct(), getExtro(), and withExtro().

◆ $extro_image

string ilLearningSequenceSettings::$extro_image
protected

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

Referenced by __construct().

◆ $members_gallery

bool ilLearningSequenceSettings::$members_gallery
protected

◆ $obj_id

int ilLearningSequenceSettings::$obj_id
protected

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

Referenced by __construct(), and getObjId().

◆ $uploads

array ilLearningSequenceSettings::$uploads = []
protected
Returns
array<string, array>

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

Referenced by getUploads().


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