ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.arOrder.php
Go to the documentation of this file.
1 <?php
2 require_once(dirname(__FILE__) . '/../Statement/class.arStatement.php');
3 
11 class 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.
setDirection($direction)
setFieldname($fieldname)
Class arStatement.
asSQLStatement(ActiveRecord $ar)
Class arOrder.