mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10739 201d5d3c-b55e-5fd7-737f-ddc643e51545
48 lines
850 B
PHP
48 lines
850 B
PHP
<?php
|
|
/**
|
|
* @author NHN (developers@xpressengine.com)
|
|
* @package /classes/db/queryparts/table
|
|
* @version 0.1
|
|
*/
|
|
class Table {
|
|
/**
|
|
* table name
|
|
* @var string
|
|
*/
|
|
var $name;
|
|
/**
|
|
* table alias
|
|
* @var string
|
|
*/
|
|
var $alias;
|
|
|
|
/**
|
|
* constructor
|
|
* @param string $name
|
|
* @param string $alias
|
|
* @return void
|
|
*/
|
|
function Table($name, $alias = NULL){
|
|
$this->name = $name;
|
|
$this->alias = $alias;
|
|
}
|
|
|
|
function toString(){
|
|
//return $this->name;
|
|
return sprintf("%s%s", $this->name, $this->alias ? ' as ' . $this->alias : '');
|
|
}
|
|
|
|
function getName(){
|
|
return $this->name;
|
|
}
|
|
|
|
function getAlias(){
|
|
return $this->alias;
|
|
}
|
|
|
|
function isJoinTable(){
|
|
return false;
|
|
}
|
|
}
|
|
|
|
?>
|