ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

130 : array
131 {
132 return $this->deletions;
133 }

References $deletions.

Referenced by ilLearningSequenceSettingsDB\store().

+ 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.

115 : array
116 {
117 return $this->uploads;
118 }

References $uploads.

Referenced by ilLearningSequenceSettingsDB\store().

+ Here is the caller graph for this function:

◆ withAbstract()

ilLearningSequenceSettings::withAbstract ( string  $abstract)

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

70 {
71 $clone = clone $this;
72 $clone->abstract = $abstract;
73 return $clone;
74 }
Settings for an LSO (like abstract, extro)

References $abstract.

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

+ Here is the caller graph for this function:

◆ withAbstractImage()

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

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

94 {
95 $clone = clone $this;
96 $clone->abstract_image = $path;
97 return $clone;
98 }
$path
Definition: ltiservices.php:30

References $path.

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

+ 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 }

◆ withExtro()

ilLearningSequenceSettings::withExtro ( string  $extro)

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

82 {
83 $clone = clone $this;
84 $clone->extro = $extro;
85 return $clone;
86 }

References $extro.

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

+ Here is the caller graph for this function:

◆ withExtroImage()

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

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

106 {
107 $clone = clone $this;
108 $clone->extro_image = $path;
109 return $clone;
110 }

References $path.

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

+ Here is the caller graph for this function:

◆ withMembersGallery()

ilLearningSequenceSettings::withMembersGallery ( bool  $members_gallery)

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

148 {
149 $clone = clone $this;
150 $clone->members_gallery = $members_gallery;
151 return $clone;
152 }

References $members_gallery.

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

+ 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 }

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: