diff options
Diffstat (limited to 'engine/classes/OrderQueryComponent.php')
-rw-r--r-- | engine/classes/OrderQueryComponent.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/engine/classes/OrderQueryComponent.php b/engine/classes/OrderQueryComponent.php deleted file mode 100644 index 06549df3a..000000000 --- a/engine/classes/OrderQueryComponent.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -/** - * @class OrderQueryComponent - * Order the query results. - * @see Query - */ -class OrderQueryComponent extends QueryComponent -{ - function __construct($table, $field, $order = "asc") - { - global $CONFIG; - - $this->table = $CONFIG->dbprefix . sanitise_string($table); - $this->field = sanitise_string($field); - $this->order = sanitise_string($order); - } - - function __toString() - { - return "order by {$this->table}.{$this->field} {$this->order}"; - } -} |