XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
SelectExpression.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 
19 {
20 
26 
33  function __construct($column_name, $alias = NULL)
34  {
35  parent::__construct($column_name);
36  $this->column_alias = $alias;
37  }
38 
43  function getExpression()
44  {
45  return sprintf("%s%s", $this->column_name, $this->column_alias ? " as " . $this->column_alias : "");
46  }
47 
48  function show()
49  {
50  return true;
51  }
52 
53  function getArgument()
54  {
55  return null;
56  }
57 
58  function getArguments()
59  {
60  return array();
61  }
62 
63  function isSubquery()
64  {
65  return false;
66  }
67 
68 }
69 /* End of file SelectExpression.class.php */
70 /* Location: ./classes/db/queryparts/expression/SelectExpression.class.php */
__construct($column_name, $alias=NULL)