ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 28 of file class.arOrder.php.

References getDirection(), and getFieldname().

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

◆ getDirection()

arOrder::getDirection ( )
Returns
string

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

References $direction.

Referenced by asSQLStatement().

44  {
45  return $this->direction;
46  }
+ Here is the caller graph for this function:

◆ getFieldname()

arOrder::getFieldname ( )
Returns
string

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

References $fieldname.

Referenced by asSQLStatement().

60  {
61  return $this->fieldname;
62  }
+ Here is the caller graph for this function:

◆ setDirection()

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

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

References $direction.

36  {
37  $this->direction = $direction;
38  }

◆ setFieldname()

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

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

References $fieldname.

52  {
53  $this->fieldname = $fieldname;
54  }

Field Documentation

◆ $direction

arOrder::$direction = 'ASC'
protected

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

Referenced by getDirection(), and setDirection().

◆ $fieldname

arOrder::$fieldname = ''
protected

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

Referenced by getFieldname(), and setFieldname().


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