XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
OrderByColumn.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 
10 {
11 
17 
23 
31  {
32  $this->column_name = $column_name;
33  $this->sort_order = $sort_order;
34  }
35 
36  function toString()
37  {
38  $result = $this->getColumnName();
39  $result .= ' ';
40  $result .= is_a($this->sort_order, 'Argument') ? $this->sort_order->getValue() : $this->sort_order;
41  return $result;
42  }
43 
44  function getColumnName()
45  {
46  return is_a($this->column_name, 'Argument') ? $this->column_name->getValue() : $this->column_name;
47  }
48 
49  function getPureColumnName()
50  {
51  return is_a($this->column_name, 'Argument') ? $this->column_name->getPureValue() : $this->column_name;
52  }
53 
54  function getPureSortOrder()
55  {
56  return is_a($this->sort_order, 'Argument') ? $this->sort_order->getPureValue() : $this->sort_order;
57  }
58 
59  function getArguments()
60  {
61  $args = array();
62  if(is_a($this->column_name, 'Argument'))
63  {
65  }
66  if(is_a($this->sort_order, 'Argument'))
67  {
69  }
70  }
71 
72 }
73 /* End of file OrderByColumn.class.php */
74 /* Location: ./classes/db/order/OrderByColumn.class.php */
$args
Definition: ko.install.php:185
__construct($column_name, $sort_order)