Example #1
0
 /**
  * テーブルエイリアス名を設定する。
  *
  * @param string $tableName エイリアス名
  * @return Vizualizer_Plugin_Table テーブルオブジェクト
  */
 public function setAlias($tableName)
 {
     // DBの接続を取得する。
     $connection = Vizualizer_Database_Factory::getConnection($this->module, true);
     // エイリアスの設定に応じて、テーブル内の各変数を調整
     $this->_C = $connection->escapeIdentifier($tableName);
     $this->_T = $this->_B . " AS " . $connection->escapeIdentifier($tableName);
     $this->_W = $this->_C . ".*";
     return $this;
 }