ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
OrderingRow.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
25class OrderingRow extends DataRow implements T\OrderingRow
26{
27 protected int $position;
28 protected bool $ordering_disabled = false;
29
30 public function withPosition(int $position_index): self
31 {
32 $clone = clone $this;
33 $clone->position = $position_index;
34 return $clone;
35 }
36
37 public function getPosition(): int
38 {
39 return $this->position;
40 }
41
42 public function withOrderingDisabled(bool $flag): self
43 {
44 $clone = clone $this;
45 $clone->ordering_disabled = $flag;
46 return $clone;
47 }
48
49 public function isOrderingDisabled(): bool
50 {
52 }
53}
int()
Contains constraints and transformations on numbers.
Definition: Factory.php:74
bool()
Get a kind transformation to a bool.
Definition: Group.php:159
clone(int $target_parent_obj_id)