ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
OrderingRow.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
25 class 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 }