ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
arOrder Class Reference

Class arOrder. More...

+ Inheritance diagram for arOrder:
+ Collaboration diagram for arOrder:

Public Member Functions

 asSQLStatement (ActiveRecord $ar)
 
 setDirection ($direction)
 
 getDirection ()
 
 setFieldname ($fieldname)
 
 getFieldname ()
 
- Public Member Functions inherited from arStatement
 asSQLStatement (ActiveRecord $ar)
 
 asORACLEStatement (ActiveRecord $ar)
 
 getTableNameAs ()
 
 setTableNameAs ($table_name_as)
 

Protected Attributes

 $fieldname = ''
 
 $direction = 'ASC'
 
- Protected Attributes inherited from arStatement
 $table_name_as = ''
 

Detailed Description

Class arOrder.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
2.0.7

Definition at line 11 of file class.arOrder.php.

Member Function Documentation

◆ asSQLStatement()

arOrder::asSQLStatement ( ActiveRecord  $ar)
Parameters
ActiveRecord$ar
Returns
string

Definition at line 29 of file class.arOrder.php.

References getDirection(), and getFieldname().

30  {
31  return ' ' . $this->getFieldname() . ' ' . strtoupper($this->getDirection());
32  }
+ Here is the call graph for this function:

◆ getDirection()

arOrder::getDirection ( )
Returns
string

Definition at line 47 of file class.arOrder.php.

References $direction.

Referenced by asSQLStatement().

48  {
49  return $this->direction;
50  }
+ Here is the caller graph for this function:

◆ getFieldname()

arOrder::getFieldname ( )
Returns
string

Definition at line 65 of file class.arOrder.php.

References $fieldname.

Referenced by asSQLStatement().

66  {
67  return $this->fieldname;
68  }
+ Here is the caller graph for this function:

◆ setDirection()

arOrder::setDirection (   $direction)
Parameters
string$direction

Definition at line 38 of file class.arOrder.php.

References $direction.

39  {
40  $this->direction = $direction;
41  }

◆ setFieldname()

arOrder::setFieldname (   $fieldname)
Parameters
string$fieldname

Definition at line 56 of file class.arOrder.php.

References $fieldname.

57  {
58  $this->fieldname = $fieldname;
59  }

Field Documentation

◆ $direction

arOrder::$direction = 'ASC'
protected

Definition at line 21 of file class.arOrder.php.

Referenced by getDirection(), and setDirection().

◆ $fieldname

arOrder::$fieldname = ''
protected

Definition at line 17 of file class.arOrder.php.

Referenced by getFieldname(), and setFieldname().


The documentation for this class was generated from the following file: