ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.arOrder.php
Go to the documentation of this file.
1<?php
2require_once(dirname(__FILE__) . '/../Statement/class.arStatement.php');
3
11class arOrder extends arStatement
12{
13
17 protected $fieldname = '';
21 protected $direction = 'ASC';
22
23
29 public function asSQLStatement(ActiveRecord $ar)
30 {
31 return ' ' . $this->getFieldname() . ' ' . strtoupper($this->getDirection());
32 }
33
34
38 public function setDirection($direction)
39 {
40 $this->direction = $direction;
41 }
42
43
47 public function getDirection()
48 {
49 return $this->direction;
50 }
51
52
56 public function setFieldname($fieldname)
57 {
58 $this->fieldname = $fieldname;
59 }
60
61
65 public function getFieldname()
66 {
67 return $this->fieldname;
68 }
69}
Class ActiveRecord.
An exception for terminatinating execution or to throw for unit testing.
Class arOrder.
asSQLStatement(ActiveRecord $ar)
setDirection($direction)
setFieldname($fieldname)
Class arStatement.