ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilAssOrderingElement Class Reference
+ Inheritance diagram for ilAssOrderingElement:
+ Collaboration diagram for ilAssOrderingElement:

Public Member Functions

 __construct (int $id=-1)
 ilAssOrderingElement constructor. More...
 
 __clone ()
 Cloning. More...
 
 getClone ()
 
 getId ()
 
 setId (int $id)
 
 getRandomIdentifier ()
 
 setRandomIdentifier (int $random_identifier)
 
 getSolutionIdentifier ()
 
 setSolutionIdentifier (int $solution_identifier)
 
 setIndentation (int $indentation)
 
 getIndentation ()
 
 getPosition ()
 
 setPosition (int $position)
 
 getContent ()
 
 setContent ($content)
 
 getUploadImageFile ()
 
 setUploadImageFile ($uploadImageFile)
 
 getUploadImageName ()
 
 setUploadImageName ($uploadImageName)
 
 isImageUploadAvailable ()
 
 isImageRemovalRequest ()
 
 setImageRemovalRequest ($imageRemovalRequest)
 
 getImagePathWeb ()
 
 setImagePathWeb ($imagePathWeb)
 
 getImagePathFs ()
 
 setImagePathFs (string $image_path_fs)
 
 getImageThumbnailPrefix ()
 
 setImageThumbnailPrefix ($imageThumbnailPrefix)
 
 isSameElement (ilAssOrderingElement $element)
 
 getStorageValue1 (int $ordering_type)
 
 getStorageValue2 (int $ordering_type)
 
 __toString ()
 
 getPresentationImageUrl ()
 
 getExportIdent ()
 
 isExportIdent (string $ident)
 
 setExportIdent ($ident)
 
 withRandomIdentifier (int $id)
 
 withSolutionIdentifier (int $id)
 
 withPosition (int $position)
 
 withIndentation (int $indentation)
 
 withContent (string $content)
 
 toNormalized (Transformations $transformations, array $context=[])
 Convert the internal state of the implementing object into a language-neutral array structure. More...
 
 fromNormalized (array $normalized, Transformations $transformations)
 Restore the object from its normalized representation. More...
 
 toNormalized (Transformations $transformations, array $context=[])
 Convert the internal state of the implementing object into a language-neutral array structure. More...
 
 fromNormalized (array $normalized, Transformations $transformations)
 Restore the object from its normalized representation. More...
 

Data Fields

const EXPORT_IDENT_PROPERTY_SEPARATOR = '_'
 
 $objectInstanceId
 
int $id
 

Static Public Attributes

static $objectInstanceCounter = 0
 

Protected Member Functions

 thumbnailFileExists ()
 
 getThumbnailFilePath ()
 
 getThumbnailFileUrl ()
 
 imageFileExists ()
 
 getImageFilePath ()
 
 getImageFileUrl ()
 

Protected Attributes

int $random_identifier = null
 this identifier is generated randomly it is recycled for known elements More...
 
int $solution_identifier = null
 this identifier is used to identify elements and is stored together with the set position and indentation More...
 
int $indentation = 0
 the correct width of indentation for the element More...
 
int $position = null
 the correct position in the ordering sequence More...
 
string $content = null
 
string $uploadImageName = null
 
string $uploadImageFile = null
 
bool $imageRemovalRequest = false
 
string $imagePathWeb = null
 
string $image_path_fs = null
 
 $imageThumbnailPrefix = null
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilAssOrderingElement::__construct ( int  $id = -1)

ilAssOrderingElement constructor.

Definition at line 88 of file class.ilAssOrderingElement.php.

89 {
90 $this->id = $id;
91 $this->objectInstanceId = ++self::$objectInstanceCounter;
92 }

References $id, and $objectInstanceCounter.

Member Function Documentation

◆ __clone()

ilAssOrderingElement::__clone ( )

Cloning.

Definition at line 97 of file class.ilAssOrderingElement.php.

98 {
99 $this->objectInstanceId = ++self::$objectInstanceCounter;
100 }

References $objectInstanceCounter.

◆ __toString()

ilAssOrderingElement::__toString ( )

Definition at line 321 of file class.ilAssOrderingElement.php.

321 : string
322 {
323 return $this->getContent() ?? '';
324 }

References getContent().

+ Here is the call graph for this function:

◆ fromNormalized()

ilAssOrderingElement::fromNormalized ( array  $normalized,
Transformations  $transformations 
)

Restore the object from its normalized representation.

Parameters
array<array-key,mixed>$normalized

Implements ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\FromNormalized.

Definition at line 466 of file class.ilAssOrderingElement.php.

466 : self
467 {
468 $clone = $this->withRandomIdentifier($transformations->int($normalized['random_identifier']))
469 ->withSolutionIdentifier($transformations->int($normalized['solution_identifier']))
470 ->withPosition($transformations->int($normalized['position']))
471 ->withIndentation($transformations->int($normalized['indentation']));
472
473 if (is_array($normalized['content'])) {
474 $clone->setContent($transformations->denormalize($normalized['content'], QuestionImage::class)?->getFilename());
475 } else {
476 $clone->setContent((string) $normalized['content']);
477 }
478
479 $clone->setId($transformations->denormalize($normalized['id'], Id::class)->getId());
480
481 return $clone;
482 }
denormalize(array|float|bool|int|string|null $normalized, string|object $expected)

References ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\denormalize(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\int(), and withRandomIdentifier().

+ Here is the call graph for this function:

◆ getClone()

ilAssOrderingElement::getClone ( )

Definition at line 102 of file class.ilAssOrderingElement.php.

103 {
104 return clone $this;
105 }

◆ getContent()

◆ getExportIdent()

ilAssOrderingElement::getExportIdent ( )

Definition at line 377 of file class.ilAssOrderingElement.php.

377 : string
378 {
379 $ident = [
380 $this->getRandomIdentifier(),
381 $this->getSolutionIdentifier(),
382 $this->getPosition(),
383 $this->getIndentation()
384 ];
385
386 return implode(self::EXPORT_IDENT_PROPERTY_SEPARATOR, $ident);
387 }

References getIndentation(), getPosition(), getRandomIdentifier(), and getSolutionIdentifier().

+ Here is the call graph for this function:

◆ getId()

ilAssOrderingElement::getId ( )

Definition at line 107 of file class.ilAssOrderingElement.php.

107 : int
108 {
109 return $this->id;
110 }

References $id.

Referenced by ilAssOrderingFormValuesObjectsConverter\getStructValueFromObject().

+ Here is the caller graph for this function:

◆ getImageFilePath()

ilAssOrderingElement::getImageFilePath ( )
protected

Definition at line 354 of file class.ilAssOrderingElement.php.

354 : string
355 {
356 return $this->getImagePathFs() . $this->getContent();
357 }

References getContent(), and getImagePathFs().

Referenced by imageFileExists().

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

◆ getImageFileUrl()

ilAssOrderingElement::getImageFileUrl ( )
protected

Definition at line 359 of file class.ilAssOrderingElement.php.

359 : string
360 {
361 return $this->getImagePathWeb() . $this->getContent();
362 }

References getContent(), and getImagePathWeb().

Referenced by getPresentationImageUrl().

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

◆ getImagePathFs()

ilAssOrderingElement::getImagePathFs ( )
Returns
string

Definition at line 256 of file class.ilAssOrderingElement.php.

256 : ?string
257 {
259 }

References $image_path_fs.

Referenced by getImageFilePath(), and getThumbnailFilePath().

+ Here is the caller graph for this function:

◆ getImagePathWeb()

ilAssOrderingElement::getImagePathWeb ( )
Returns
string

Definition at line 240 of file class.ilAssOrderingElement.php.

240 : ?string
241 {
242 return $this->imagePathWeb;
243 }

References $imagePathWeb.

Referenced by getImageFileUrl(), and getThumbnailFileUrl().

+ Here is the caller graph for this function:

◆ getImageThumbnailPrefix()

ilAssOrderingElement::getImageThumbnailPrefix ( )

Definition at line 266 of file class.ilAssOrderingElement.php.

References $imageThumbnailPrefix.

Referenced by getThumbnailFilePath(), and getThumbnailFileUrl().

+ Here is the caller graph for this function:

◆ getIndentation()

◆ getPosition()

◆ getPresentationImageUrl()

ilAssOrderingElement::getPresentationImageUrl ( )

Definition at line 364 of file class.ilAssOrderingElement.php.

364 : string
365 {
366 if ($this->thumbnailFileExists()) {
367 return $this->getThumbnailFileUrl();
368 }
369
370 if ($this->imageFileExists()) {
371 return $this->getImageFileUrl();
372 }
373
374 return '';
375 }

References getImageFileUrl(), getThumbnailFileUrl(), imageFileExists(), and thumbnailFileExists().

Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().

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

◆ getRandomIdentifier()

ilAssOrderingElement::getRandomIdentifier ( )

◆ getSolutionIdentifier()

ilAssOrderingElement::getSolutionIdentifier ( )
Returns
int

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

130 : ?int
131 {
133 }
int $solution_identifier
this identifier is used to identify elements and is stored together with the set position and indenta...

References $solution_identifier.

Referenced by ilAssOrderingElementList\fetchIdentifier(), getExportIdent(), getStorageValue1(), ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\insertOrderingElement(), isSameElement(), and assOrderingQuestionTest\testOrderingElementMutation().

+ Here is the caller graph for this function:

◆ getStorageValue1()

ilAssOrderingElement::getStorageValue1 ( int  $ordering_type)

◆ getStorageValue2()

ilAssOrderingElement::getStorageValue2 ( int  $ordering_type)

Definition at line 306 of file class.ilAssOrderingElement.php.

306 : int|string
307 {
308 switch ($ordering_type) {
311
312 return $this->getRandomIdentifier() . ':' . $this->getIndentation();
313
316 default:
317 return $this->getPosition() + 1;
318 }
319 }

References getIndentation(), getPosition(), getRandomIdentifier(), assOrderingQuestion\OQ_NESTED_PICTURES, assOrderingQuestion\OQ_NESTED_TERMS, assOrderingQuestion\OQ_PICTURES, and assOrderingQuestion\OQ_TERMS.

+ Here is the call graph for this function:

◆ getThumbnailFilePath()

ilAssOrderingElement::getThumbnailFilePath ( )
protected

Definition at line 335 of file class.ilAssOrderingElement.php.

335 : string
336 {
337 return $this->getImagePathFs() . $this->getImageThumbnailPrefix() . $this->getContent();
338 }

References getContent(), getImagePathFs(), and getImageThumbnailPrefix().

Referenced by thumbnailFileExists().

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

◆ getThumbnailFileUrl()

ilAssOrderingElement::getThumbnailFileUrl ( )
protected

Definition at line 340 of file class.ilAssOrderingElement.php.

340 : string
341 {
342 return $this->getImagePathWeb() . $this->getImageThumbnailPrefix() . $this->getContent();
343 }

References getContent(), getImagePathWeb(), and getImageThumbnailPrefix().

Referenced by getPresentationImageUrl().

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

◆ getUploadImageFile()

ilAssOrderingElement::getUploadImageFile ( )

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

177 : ?string
178 {
180 }

References $uploadImageFile.

Referenced by isImageUploadAvailable().

+ Here is the caller graph for this function:

◆ getUploadImageName()

ilAssOrderingElement::getUploadImageName ( )
Returns
string

Definition at line 196 of file class.ilAssOrderingElement.php.

196 : ?string
197 {
199 }

References $uploadImageName.

◆ imageFileExists()

ilAssOrderingElement::imageFileExists ( )
protected

Definition at line 345 of file class.ilAssOrderingElement.php.

345 : bool
346 {
347 if (!$this->getContent()) {
348 return false;
349 }
350
351 return file_exists($this->getImageFilePath());
352 }

References getContent(), and getImageFilePath().

Referenced by getPresentationImageUrl().

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

◆ isExportIdent()

ilAssOrderingElement::isExportIdent ( string  $ident)

Definition at line 389 of file class.ilAssOrderingElement.php.

389 : bool
390 {
391 if (!strlen($ident)) {
392 return false;
393 }
394
395 $parts = explode(self::EXPORT_IDENT_PROPERTY_SEPARATOR, $ident);
396 return
397 count($parts) == 4
402 }

References ilAssOrderingElementList\isValidIndentation(), ilAssOrderingElementList\isValidPosition(), ilAssOrderingElementList\isValidRandomIdentifier(), and ilAssOrderingElementList\isValidSolutionIdentifier().

Referenced by setExportIdent().

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

◆ isImageRemovalRequest()

ilAssOrderingElement::isImageRemovalRequest ( )
Returns
bool

Definition at line 224 of file class.ilAssOrderingElement.php.

224 : ?bool
225 {
227 }

References $imageRemovalRequest.

◆ isImageUploadAvailable()

ilAssOrderingElement::isImageUploadAvailable ( )
Returns
bool

Definition at line 215 of file class.ilAssOrderingElement.php.

215 : bool
216 {
217 return $this->getUploadImageFile() !== null
218 && $this->getUploadImageFile() !== '';
219 }

References getUploadImageFile().

+ Here is the call graph for this function:

◆ isSameElement()

ilAssOrderingElement::isSameElement ( ilAssOrderingElement  $element)

Definition at line 276 of file class.ilAssOrderingElement.php.

276 : bool
277 {
278 return [
279 $this->getRandomIdentifier(),
280 $this->getSolutionIdentifier(),
281 $this->getPosition(),
282 $this->getIndentation(),
283 ] == [
284 $element->getRandomIdentifier(),
285 $element->getSolutionIdentifier(),
286 $element->getPosition(),
287 $element->getIndentation()
288 ];
289 }

References getIndentation(), getPosition(), getRandomIdentifier(), and getSolutionIdentifier().

+ Here is the call graph for this function:

◆ setContent()

ilAssOrderingElement::setContent (   $content)

Definition at line 169 of file class.ilAssOrderingElement.php.

169 : void
170 {
171 if (is_array($content)) {
172 $content = array_shift($content);
173 }
174 $this->content = $content;
175 }

References $content.

◆ setExportIdent()

ilAssOrderingElement::setExportIdent (   $ident)

Definition at line 404 of file class.ilAssOrderingElement.php.

404 : void
405 {
406 if ($this->isExportIdent($ident)) {
407 list($randomId, $solutionId, $pos, $indent) = explode(
408 self::EXPORT_IDENT_PROPERTY_SEPARATOR,
409 $ident
410 );
411 $this->setRandomIdentifier((int) $randomId);
412 $this->setSolutionIdentifier((int) $solutionId);
413 $this->setPosition((int) $pos);
414 $this->setIndentation((int) $indent);
415 }
416 }
setRandomIdentifier(int $random_identifier)
setSolutionIdentifier(int $solution_identifier)

References isExportIdent(), setIndentation(), setPosition(), setRandomIdentifier(), and setSolutionIdentifier().

+ Here is the call graph for this function:

◆ setId()

ilAssOrderingElement::setId ( int  $id)

Definition at line 112 of file class.ilAssOrderingElement.php.

112 : void
113 {
114 $this->id = $id;
115 }

References $id.

◆ setImagePathFs()

ilAssOrderingElement::setImagePathFs ( string  $image_path_fs)

Definition at line 261 of file class.ilAssOrderingElement.php.

261 : void
262 {
263 $this->image_path_fs = $image_path_fs;
264 }

References $image_path_fs.

Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().

+ Here is the caller graph for this function:

◆ setImagePathWeb()

ilAssOrderingElement::setImagePathWeb (   $imagePathWeb)
Parameters
string$imagePathWeb

Definition at line 248 of file class.ilAssOrderingElement.php.

248 : void
249 {
250 $this->imagePathWeb = $imagePathWeb;
251 }

References $imagePathWeb.

Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().

+ Here is the caller graph for this function:

◆ setImageRemovalRequest()

ilAssOrderingElement::setImageRemovalRequest (   $imageRemovalRequest)
Parameters
bool$imageRemovalRequest

Definition at line 232 of file class.ilAssOrderingElement.php.

232 : void
233 {
234 $this->imageRemovalRequest = $imageRemovalRequest;
235 }

References $imageRemovalRequest.

◆ setImageThumbnailPrefix()

ilAssOrderingElement::setImageThumbnailPrefix (   $imageThumbnailPrefix)

Definition at line 271 of file class.ilAssOrderingElement.php.

271 : void
272 {
273 $this->imageThumbnailPrefix = $imageThumbnailPrefix;
274 }

References $imageThumbnailPrefix.

Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().

+ Here is the caller graph for this function:

◆ setIndentation()

ilAssOrderingElement::setIndentation ( int  $indentation)

Definition at line 140 of file class.ilAssOrderingElement.php.

140 : void
141 {
142 $this->indentation = $indentation;
143 }

References $indentation.

Referenced by setExportIdent().

+ Here is the caller graph for this function:

◆ setPosition()

ilAssOrderingElement::setPosition ( int  $position)

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

155 : void
156 {
157 $this->position = $position;
158 }

References $position.

Referenced by setExportIdent().

+ Here is the caller graph for this function:

◆ setRandomIdentifier()

ilAssOrderingElement::setRandomIdentifier ( int  $random_identifier)

Definition at line 122 of file class.ilAssOrderingElement.php.

122 : void
123 {
124 $this->random_identifier = $random_identifier;
125 }

References $random_identifier.

Referenced by ilAssOrderingElementList\populateIdentifier(), and setExportIdent().

+ Here is the caller graph for this function:

◆ setSolutionIdentifier()

ilAssOrderingElement::setSolutionIdentifier ( int  $solution_identifier)

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

135 : void
136 {
137 $this->solution_identifier = $solution_identifier;
138 }

References $solution_identifier.

Referenced by ilAssOrderingElementList\populateIdentifier(), and setExportIdent().

+ Here is the caller graph for this function:

◆ setUploadImageFile()

ilAssOrderingElement::setUploadImageFile (   $uploadImageFile)
Parameters
string$uploadImageFile

Definition at line 185 of file class.ilAssOrderingElement.php.

185 : void
186 {
187 if (is_array($uploadImageFile)) {
188 $uploadImageFile = array_shift($uploadImageFile);
189 }
190 $this->uploadImageFile = $uploadImageFile;
191 }

References $uploadImageFile.

◆ setUploadImageName()

ilAssOrderingElement::setUploadImageName (   $uploadImageName)
Parameters
string$uploadImageName

Definition at line 204 of file class.ilAssOrderingElement.php.

204 : void
205 {
206 if (is_array($uploadImageName)) {
207 $uploadImageName = array_shift($uploadImageName);
208 }
209 $this->uploadImageName = $uploadImageName;
210 }

References $uploadImageName.

◆ thumbnailFileExists()

ilAssOrderingElement::thumbnailFileExists ( )
protected

Definition at line 326 of file class.ilAssOrderingElement.php.

326 : bool
327 {
328 if (!$this->getContent()) {
329 return false;
330 }
331
332 return file_exists($this->getThumbnailFilePath());
333 }

References getContent(), and getThumbnailFilePath().

Referenced by getPresentationImageUrl().

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

◆ toNormalized()

ilAssOrderingElement::toNormalized ( Transformations  $transformations,
array  $context = [] 
)

Convert the internal state of the implementing object into a language-neutral array structure.

The resulting array must contain only null, scalar values (string, int, float, bool) and nested arrays following the same rules.

Parameters
array<string,mixed>$context
Returns
array<array-key, mixed>|float|bool|int|string|null

Implements ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\ToNormalized.

Definition at line 451 of file class.ilAssOrderingElement.php.

451 : array|float|bool|int|string|null
452 {
453 return [
454 'id' => $transformations->normalize(new Id($this->id, 'ordering')),
455 'random_identifier' => $this->random_identifier,
456 'solution_identifier' => $this->solution_identifier,
457 'position' => $this->position,
458 'indentation' => $this->indentation,
459 'content' => $this->content ? $transformations->normalize(
460 new QuestionImage($this->content, $context['question_id'] ?? null)
461 ) : null,
462 ];
463 }
Wrapper object for an object identifier and an optional object type the identifier belongs to.
Definition: Id.php:33
Wrapper object for an image file within a question (e.g.

References $indentation, $position, $random_identifier, $solution_identifier, and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\normalize().

+ Here is the call graph for this function:

◆ withContent()

ilAssOrderingElement::withContent ( string  $content)

Definition at line 443 of file class.ilAssOrderingElement.php.

443 : self
444 {
445 $clone = clone $this;
446 $clone->content = $content;
447 return $clone;
448 }

References $content.

Referenced by assOrderingQuestionTest\testOrderingElementMutation().

+ Here is the caller graph for this function:

◆ withIndentation()

ilAssOrderingElement::withIndentation ( int  $indentation)

Definition at line 437 of file class.ilAssOrderingElement.php.

437 : self
438 {
439 $clone = clone $this;
440 $clone->indentation = $indentation;
441 return $clone;
442 }

References $indentation.

Referenced by assOrderingQuestionTest\testOrderingElementMutation().

+ Here is the caller graph for this function:

◆ withPosition()

ilAssOrderingElement::withPosition ( int  $position)

Definition at line 431 of file class.ilAssOrderingElement.php.

431 : self
432 {
433 $clone = clone $this;
434 $clone->position = $position;
435 return $clone;
436 }

References $position.

Referenced by assOrderingQuestionTest\testOrderingElementMutation().

+ Here is the caller graph for this function:

◆ withRandomIdentifier()

ilAssOrderingElement::withRandomIdentifier ( int  $id)

Definition at line 419 of file class.ilAssOrderingElement.php.

419 : self
420 {
421 $clone = clone $this;
422 $clone->random_identifier = $id;
423 return $clone;
424 }

References $id.

Referenced by fromNormalized(), and assOrderingQuestionTest\testOrderingElementMutation().

+ Here is the caller graph for this function:

◆ withSolutionIdentifier()

ilAssOrderingElement::withSolutionIdentifier ( int  $id)

Definition at line 425 of file class.ilAssOrderingElement.php.

425 : self
426 {
427 $clone = clone $this;
428 $clone->solution_identifier = $id;
429 return $clone;
430 }

References $id.

Referenced by assOrderingQuestionTest\testOrderingElementMutation().

+ Here is the caller graph for this function:

Field Documentation

◆ $content

string ilAssOrderingElement::$content = null
protected

Definition at line 77 of file class.ilAssOrderingElement.php.

Referenced by getContent(), setContent(), and withContent().

◆ $id

int ilAssOrderingElement::$id

◆ $image_path_fs

string ilAssOrderingElement::$image_path_fs = null
protected

Definition at line 82 of file class.ilAssOrderingElement.php.

Referenced by getImagePathFs(), and setImagePathFs().

◆ $imagePathWeb

string ilAssOrderingElement::$imagePathWeb = null
protected

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

Referenced by getImagePathWeb(), and setImagePathWeb().

◆ $imageRemovalRequest

bool ilAssOrderingElement::$imageRemovalRequest = false
protected

Definition at line 80 of file class.ilAssOrderingElement.php.

Referenced by isImageRemovalRequest(), and setImageRemovalRequest().

◆ $imageThumbnailPrefix

ilAssOrderingElement::$imageThumbnailPrefix = null
protected

◆ $indentation

int ilAssOrderingElement::$indentation = 0
protected

the correct width of indentation for the element

Definition at line 71 of file class.ilAssOrderingElement.php.

Referenced by getIndentation(), setIndentation(), toNormalized(), and withIndentation().

◆ $objectInstanceCounter

ilAssOrderingElement::$objectInstanceCounter = 0
static

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

Referenced by __clone(), and __construct().

◆ $objectInstanceId

ilAssOrderingElement::$objectInstanceId

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

◆ $position

int ilAssOrderingElement::$position = null
protected

the correct position in the ordering sequence

Definition at line 76 of file class.ilAssOrderingElement.php.

Referenced by getPosition(), setPosition(), toNormalized(), and withPosition().

◆ $random_identifier

int ilAssOrderingElement::$random_identifier = null
protected

this identifier is generated randomly it is recycled for known elements

the main purpose is to have a key that does not make the solution derivable and is therefore useable in the examines working form

Definition at line 54 of file class.ilAssOrderingElement.php.

Referenced by getRandomIdentifier(), setRandomIdentifier(), and toNormalized().

◆ $solution_identifier

int ilAssOrderingElement::$solution_identifier = null
protected

this identifier is used to identify elements and is stored together with the set position and indentation

this happens for the examine's submit data as well, an order index is build and the elements are assigned using this identifier

it is an integer sequence starting at 0 that increments with every added element while obsolete numbers are not recycled

Definition at line 66 of file class.ilAssOrderingElement.php.

Referenced by getSolutionIdentifier(), setSolutionIdentifier(), and toNormalized().

◆ $uploadImageFile

string ilAssOrderingElement::$uploadImageFile = null
protected

Definition at line 79 of file class.ilAssOrderingElement.php.

Referenced by getUploadImageFile(), and setUploadImageFile().

◆ $uploadImageName

string ilAssOrderingElement::$uploadImageName = null
protected

Definition at line 78 of file class.ilAssOrderingElement.php.

Referenced by getUploadImageName(), and setUploadImageName().

◆ EXPORT_IDENT_PROPERTY_SEPARATOR

const ilAssOrderingElement::EXPORT_IDENT_PROPERTY_SEPARATOR = '_'

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


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