19 declare(strict_types=1);
85 $this->objectInstanceId = ++self::$objectInstanceCounter;
93 $this->objectInstanceId = ++self::$objectInstanceCounter;
106 public function setId(
int $id): void
165 if (is_array($content)) {
166 $content = array_shift($content);
181 if (is_array($uploadImageFile)) {
182 $uploadImageFile = array_shift($uploadImageFile);
200 if (is_array($uploadImageName)) {
201 $uploadImageName = array_shift($uploadImageName);
287 switch ($ordering_type) {
302 switch ($ordering_type) {
380 return implode(self::EXPORT_IDENT_PROPERTY_SEPARATOR, $ident);
385 if (!strlen($ident)) {
389 $parts = explode(self::EXPORT_IDENT_PROPERTY_SEPARATOR, $ident);
401 list($randomId, $solutionId, $pos, $indent) = explode(
402 self::EXPORT_IDENT_PROPERTY_SEPARATOR,
415 $clone = clone $this;
416 $clone->random_identifier =
$id;
421 $clone = clone $this;
422 $clone->solution_identifier =
$id;
427 $clone = clone $this;
433 $clone = clone $this;
439 $clone = clone $this;
getStorageValue1(int $ordering_type)
static isValidPosition($position)
isSameElement(ilAssOrderingElement $element)
setRandomIdentifier(int $random_identifier)
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
int $indentation
the correct width of indentation for the element
bool $imageRemovalRequest
setUploadImageName($uploadImageName)
const EXPORT_IDENT_PROPERTY_SEPARATOR
setUploadImageFile($uploadImageFile)
getImageThumbnailPrefix()
withSolutionIdentifier(int $id)
int $random_identifier
this identifier is generated randomly it is recycled for known elements
static isValidRandomIdentifier($identifier)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
withIndentation(int $indentation)
setImagePathWeb($imagePathWeb)
getStorageValue2(int $ordering_type)
__construct(int $id=-1)
ilAssOrderingElement constructor.
withRandomIdentifier(int $id)
setImageRemovalRequest($imageRemovalRequest)
getPresentationImageUrl()
isExportIdent(string $ident)
withPosition(int $position)
setImagePathFs(string $image_path_fs)
setIndentation(int $indentation)
int $position
the correct position in the ordering sequence
static $objectInstanceCounter
setPosition(int $position)
setImageThumbnailPrefix($imageThumbnailPrefix)
withContent(string $content)
static isValidSolutionIdentifier($identifier)
setSolutionIdentifier(int $solution_identifier)
static isValidIndentation($indentation)
int $solution_identifier
this identifier is used to identify elements and is stored together with the set position and indenta...