19declare(strict_types=1);
26use ILIAS\Repository\RetrievalBase;
38 protected string $lang
58 return count($this->getShortTitles());
63 return $field ===
"id";
68 if ($this->data !==
null) {
75 "id" => (
int) $short_title[
"obj_id"],
76 "title" => $short_title[
"title"],
77 "short_title" => $short_title[
"short_title"],
78 "default_title" => $short_title[
"default_title"] ??
"",
79 "default_short_title" => $short_title[
"default_short_title"] ??
""
83 return $this->data =
$data;
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.
count(array $filter, array $parameters)
__construct(protected int $lm_id, protected string $lang)
isFieldNumeric(string $field)
getData(array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
static getShortTitles(int $a_lm_id, string $a_lang="-")