ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
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, int $lso_mod=self::MODE_LINEAR)
 
 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)
 
 getLSOMod ()
 
 getMode ()
 
 withLSOMod (int $lso_mod)
 
 withMode (int $lso_mod)
 

Data Fields

const MODE_LINEAR = 0
 
const MODE_ADAPTIVE = 1
 

Protected Attributes

int $obj_id
 
string $abstract
 
string $extro
 
string $abstract_image
 
string $extro_image
 
int $lso_mod
 
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,
int  $lso_mod = self::MODE_LINEAR 
)

Member Function Documentation

◆ getAbstract()

◆ getAbstractImage()

◆ getDeletions()

ilLearningSequenceSettings::getDeletions ( )
Returns
string[]

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

136 : array
137 {
138 return $this->deletions;
139 }

References $deletions.

◆ getExtro()

◆ getExtroImage()

◆ getLSOMod()

ilLearningSequenceSettings::getLSOMod ( )

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

160 : int
161 {
162 return $this->lso_mod;
163 }

References $lso_mod.

◆ getMembersGallery()

◆ getMode()

ilLearningSequenceSettings::getMode ( )

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

165 : int
166 {
167 return $this->lso_mod;
168 }

References $lso_mod.

Referenced by LSSettingsTest\testWithMode().

+ Here is the caller graph for this function:

◆ getObjId()

◆ getUploads()

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

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

121 : array
122 {
123 return $this->uploads;
124 }

References $uploads.

◆ withAbstract()

ilLearningSequenceSettings::withAbstract ( string  $abstract)

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

76 {
77 $clone = clone $this;
78 $clone->abstract = $abstract;
79 return $clone;
80 }
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 99 of file class.ilLearningSequenceSettings.php.

100 {
101 $clone = clone $this;
102 $clone->abstract_image = $path;
103 return $clone;
104 }

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

+ Here is the caller graph for this function:

◆ withDeletion()

ilLearningSequenceSettings::withDeletion ( string  $which)

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

142 {
143 $clone = clone $this;
144 $clone->deletions[] = $which;
145 return $clone;
146 }

◆ withExtro()

ilLearningSequenceSettings::withExtro ( string  $extro)

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

88 {
89 $clone = clone $this;
90 $clone->extro = $extro;
91 return $clone;
92 }

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 111 of file class.ilLearningSequenceSettings.php.

112 {
113 $clone = clone $this;
114 $clone->extro_image = $path;
115 return $clone;
116 }

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

+ Here is the caller graph for this function:

◆ withLSOMod()

ilLearningSequenceSettings::withLSOMod ( int  $lso_mod)

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

171 {
172 $clone = clone $this;
173 $clone->lso_mod = $lso_mod;
174 return $clone;
175 }

References $lso_mod.

Referenced by withMode().

+ Here is the caller graph for this function:

◆ withMembersGallery()

ilLearningSequenceSettings::withMembersGallery ( bool  $members_gallery)

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

154 {
155 $clone = clone $this;
156 $clone->members_gallery = $members_gallery;
157 return $clone;
158 }

References $members_gallery.

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

+ Here is the caller graph for this function:

◆ withMode()

ilLearningSequenceSettings::withMode ( int  $lso_mod)

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

References withLSOMod().

Referenced by LSSettingsTest\testWithMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withUpload()

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

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

127 {
128 $clone = clone $this;
129 $clone->uploads[$which] = $upload_info;
130 return $clone;
131 }

Field Documentation

◆ $abstract

string ilLearningSequenceSettings::$abstract
protected

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

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

◆ $abstract_image

string ilLearningSequenceSettings::$abstract_image
protected

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

Referenced by __construct().

◆ $deletions

array ilLearningSequenceSettings::$deletions = []
protected

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

Referenced by getDeletions().

◆ $extro

string ilLearningSequenceSettings::$extro
protected

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

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

◆ $extro_image

string ilLearningSequenceSettings::$extro_image
protected

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

Referenced by __construct().

◆ $lso_mod

int ilLearningSequenceSettings::$lso_mod
protected

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

Referenced by __construct(), getLSOMod(), getMode(), and withLSOMod().

◆ $members_gallery

bool ilLearningSequenceSettings::$members_gallery
protected

◆ $obj_id

int ilLearningSequenceSettings::$obj_id
protected

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

Referenced by __construct(), and getObjId().

◆ $uploads

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

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

Referenced by getUploads().

◆ MODE_ADAPTIVE

◆ MODE_LINEAR


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