XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Table.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 
9 class Table
10 {
11 
16  var $name;
17 
22  var $alias;
23 
30  function __construct($name, $alias = NULL)
31  {
32  $this->name = $name;
33  $this->alias = $alias;
34  }
35 
36  function toString()
37  {
38  //return $this->name;
39  return sprintf("%s%s", $this->name, $this->alias ? ' as ' . $this->alias : '');
40  }
41 
42  function getName()
43  {
44  return $this->name;
45  }
46 
47  function getAlias()
48  {
49  return $this->alias;
50  }
51 
52  function isJoinTable()
53  {
54  return false;
55  }
56 
57 }
58 /* End of file Table.class.php */
59 /* Location: ./classes/db/queryparts/table/Table.class.php */
__construct($name, $alias=NULL)
Definition: Table.class.php:30
getName()
Definition: Table.class.php:42
isJoinTable()
Definition: Table.class.php:52
getAlias()
Definition: Table.class.php:47
toString()
Definition: Table.class.php:36