ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.arOrder.php
Go to the documentation of this file.
1<?php
2
24class arOrder extends arStatement
25{
26 protected string $fieldname = '';
27 protected string $direction = 'ASC';
28
29 public function asSQLStatement(ActiveRecord $activeRecord, ilDBInterface $db): string
30 {
31 return ' ' . $this->wrapField($this->getFieldname(), $db) . ' ' . $this->getDirection();
32 }
33
34 public function setDirection(string $direction): void
35 {
36 $this->direction = $direction;
37 }
38
39 public function getDirection(): string
40 {
41 return $this->direction;
42 }
43
44 public function setFieldname(string $fieldname): void
45 {
46 $this->fieldname = $fieldname;
47 }
48
49 public function getFieldname(): string
50 {
51 return $this->fieldname;
52 }
53}
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...
setFieldname(string $fieldname)
string $fieldname
setDirection(string $direction)
string $direction
asSQLStatement(ActiveRecord $activeRecord, ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
wrapField(string $field, ilDBInterface $db)
Interface ilDBInterface.