3 declare(strict_types=1);
115 $this->objectInstanceId = ++self::$objectInstanceCounter;
123 $this->objectInstanceId = ++self::$objectInstanceCounter;
343 switch ($orderingType) {
358 switch ($orderingType) {
436 return implode(self::EXPORT_IDENT_PROPERTY_SEPARATOR, $ident);
441 if (!strlen($ident)) {
445 $parts = explode(self::EXPORT_IDENT_PROPERTY_SEPARATOR, $ident);
457 list($randomId, $solutionId, $pos, $indent) = explode(
458 self::EXPORT_IDENT_PROPERTY_SEPARATOR,
471 $clone = clone $this;
472 $clone->random_identifier =
$id;
477 $clone = clone $this;
478 $clone->solution_identifier =
$id;
483 $clone = clone $this;
489 $clone = clone $this;
495 $clone = clone $this;
$random_identifier
this identifier is generated randomly it is recycled for known elements
static isValidPosition($position)
isSameElement(ilAssOrderingElement $element)
setRandomIdentifier(int $random_identifier)
setSolutionIdentifier($solution_identifier)
$id
this identifier equals the database's row id
setUploadImageName($uploadImageName)
getStorageValue1($orderingType)
$position
the correct position in the ordering sequence
const EXPORT_IDENT_PROPERTY_SEPARATOR
setUploadImageFile($uploadImageFile)
getImageThumbnailPrefix()
withSolutionIdentifier(int $id)
static isValidRandomIdentifier($identifier)
setImagePathFs($imagePathFs)
withIndentation(int $indentation)
setImagePathWeb($imagePathWeb)
__construct(int $id=-1)
ilAssOrderingElement constructor.
withRandomIdentifier(int $id)
setImageRemovalRequest($imageRemovalRequest)
getPresentationImageUrl()
isExportIdent(string $ident)
withPosition(int $position)
getStorageValue2($orderingType)
static $objectInstanceCounter
setImageThumbnailPrefix($imageThumbnailPrefix)
withContent(string $content)
static isValidSolutionIdentifier($identifier)
setIndentation($indentation)
$solution_identifier
this identifier is used to identify elements and is stored together with the set position and indenta...
static isValidIndentation($indentation)
$indentation
the correct width of indentation for the element