73 $this->unescaped_name = $table->attrs->name;
74 $this->name = $dbParser->parseTableName($table->attrs->name);
76 $this->alias = $table->attrs->alias;
79 $this->alias = $table->attrs->name;
82 $this->join_type = $table->attrs->type;
84 $this->conditions = $table->conditions;
94 $joinList = array(
'left join' => 1,
'left outer join' => 1,
'right join' => 1,
'right outer join' => 1);
95 if(isset($joinList[$this->join_type]) && count($this->conditions))
124 return sprintf(
'new JoinTable(\'%s\', \'%s\', "%s", %s)'
125 , $dbParser->escape($this->name)
126 , $dbParser->escape($this->alias)
129 return sprintf(
'new Table(\'%s\'%s)'
130 , $dbParser->escape($this->name)
131 , $this->alias ?
', \'' . $dbParser->escape($this->alias) .
'\'' :
'');
136 if(!isset($this->conditionsTag))
140 return $this->conditionsTag->getArguments();