ILIAS  release_8 Revision v8.23
class.ilDclRecordQueryObject.php
Go to the documentation of this file.
1 <?php
2 
20 {
21  protected string $selectStatement = "";
22  protected string $joinStatement = "";
23  protected string $whereStatement = "";
24  protected string $groupStatement = "";
25  protected string $orderStatement = "";
26 
27  public function getSelectStatement(): string
28  {
30  }
31 
32  public function setSelectStatement(string $selectStatement): void
33  {
34  $this->selectStatement = " " . $selectStatement;
35  }
36 
37  public function getJoinStatement(): string
38  {
39  return $this->joinStatement;
40  }
41 
42  public function setJoinStatement(string $joinStatement): void
43  {
44  $this->joinStatement = " " . $joinStatement;
45  }
46 
47  public function getWhereStatement(): string
48  {
49  return $this->whereStatement;
50  }
51 
52  public function setWhereStatement(string $whereStatement): void
53  {
54  $this->whereStatement = " " . $whereStatement;
55  }
56 
57  public function getGroupStatement(): string
58  {
59  return $this->groupStatement;
60  }
61 
62  public function setGroupStatement(string $groupStatement): void
63  {
64  $this->groupStatement = " " . $groupStatement;
65  }
66 
67  public function getOrderStatement(): string
68  {
69  return $this->orderStatement;
70  }
71 
72  public function setOrderStatement(string $orderStatement): void
73  {
74  $this->orderStatement = " " . $orderStatement;
75  }
76 
80  public function applyCustomSorting(
81  ilDclBaseFieldModel $field,
82  array $all_records,
83  string $direction = 'asc'
84  ): array {
85  return $all_records;
86  }
87 }
setGroupStatement(string $groupStatement)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setOrderStatement(string $orderStatement)
setSelectStatement(string $selectStatement)
applyCustomSorting(ilDclBaseFieldModel $field, array $all_records, string $direction='asc')
Apply custom sorting.
setWhereStatement(string $whereStatement)
setJoinStatement(string $joinStatement)