ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
16 protected $fieldname = '';
20 protected $direction = 'ASC';
21
22
28 public function asSQLStatement(ActiveRecord $ar) {
29 return ' ' . $this->getFieldname() . ' ' . strtoupper($this->getDirection());
30 }
31
32
36 public function setDirection($direction) {
37 $this->direction = $direction;
38 }
39
40
44 public function getDirection() {
45 return $this->direction;
46 }
47
48
52 public function setFieldname($fieldname) {
53 $this->fieldname = $fieldname;
54 }
55
56
60 public function getFieldname() {
61 return $this->fieldname;
62 }
63}
64
65?>
Class ActiveRecord.
Class arOrder.
asSQLStatement(ActiveRecord $ar)
setDirection($direction)
setFieldname($fieldname)
Class arStatement.