XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
classes
db
queryparts
order
OrderByColumn.class.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
9
class
OrderByColumn
10
{
11
16
var
$column_name
;
17
22
var
$sort_order
;
23
30
function
__construct
(
$column_name
,
$sort_order
)
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
{
64
$args
[] =
$this->column_name
;
65
}
66
if
(is_a($this->sort_order,
'Argument'
))
67
{
68
$args
[] =
$this->sort_order
;
69
}
70
}
71
72
}
73
/* End of file OrderByColumn.class.php */
74
/* Location: ./classes/db/order/OrderByColumn.class.php */
OrderByColumn
Definition:
OrderByColumn.class.php:9
OrderByColumn\$column_name
$column_name
Definition:
OrderByColumn.class.php:16
OrderByColumn\getColumnName
getColumnName()
Definition:
OrderByColumn.class.php:44
$args
$args
Definition:
ko.install.php:185
OrderByColumn\getArguments
getArguments()
Definition:
OrderByColumn.class.php:59
OrderByColumn\toString
toString()
Definition:
OrderByColumn.class.php:36
OrderByColumn\getPureSortOrder
getPureSortOrder()
Definition:
OrderByColumn.class.php:54
OrderByColumn\getPureColumnName
getPureColumnName()
Definition:
OrderByColumn.class.php:49
OrderByColumn\$sort_order
$sort_order
Definition:
OrderByColumn.class.php:22
OrderByColumn\__construct
__construct($column_name, $sort_order)
Definition:
OrderByColumn.class.php:30
Generated on Tue Dec 18 2018 17:04:25 for XpressEngine Core by
1.8.5