ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
arOrder Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 asSQLStatement (ActiveRecord $activeRecord, ilDBInterface $db)
 
 setDirection (string $direction)
 
 getDirection ()
 
 setFieldname (string $fieldname)
 
 getFieldname ()
 
- Public Member Functions inherited from arStatement
 asSQLStatement (ActiveRecord $activeRecord, ilDBInterface $db)
 
 getTableNameAs ()
 
 setTableNameAs (string $table_name_as)
 

Protected Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from arStatement
 wrapFields (array $fields, ilDBInterface $db)
 
 wrapField (string $field, ilDBInterface $db)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 24 of file class.arOrder.php.

Member Function Documentation

◆ asSQLStatement()

arOrder::asSQLStatement ( ActiveRecord  $activeRecord,
ilDBInterface  $db 
)

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

References getDirection(), getFieldname(), and arStatement\wrapField().

29  : string
30  {
31  return ' ' . $this->wrapField($this->getFieldname(), $db) . ' ' . $this->getDirection();
32  }
wrapField(string $field, ilDBInterface $db)
+ Here is the call graph for this function:

◆ getDirection()

arOrder::getDirection ( )

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

References $direction.

Referenced by asSQLStatement().

39  : string
40  {
41  return $this->direction;
42  }
string $direction
+ Here is the caller graph for this function:

◆ getFieldname()

arOrder::getFieldname ( )

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

References $fieldname.

Referenced by asSQLStatement().

49  : string
50  {
51  return $this->fieldname;
52  }
string $fieldname
+ Here is the caller graph for this function:

◆ setDirection()

arOrder::setDirection ( string  $direction)

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

References $direction.

34  : void
35  {
36  $this->direction = $direction;
37  }
string $direction

◆ setFieldname()

arOrder::setFieldname ( string  $fieldname)

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

References $fieldname.

44  : void
45  {
46  $this->fieldname = $fieldname;
47  }
string $fieldname

Field Documentation

◆ $direction

string arOrder::$direction = 'ASC'
protected

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

Referenced by getDirection(), and setDirection().

◆ $fieldname

string arOrder::$fieldname = ''
protected

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

Referenced by getFieldname(), and setFieldname().


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