public static function join($context, $type, $table)
{
if ($type) {
$context->appendSql("{$type} JOIN {$table}");
} else {
$context->appendSql("JOIN {$table}");
}
}
/** * innerJoin('table1')->on('table0.id=table1.id') => "INNER JOIN table1 ON table0.id=table1.id" * @param string $table * @return \phprs\ezsql\rules\select\JoinOnRule */ public function innerJoin($table) { JoinImpl::join($this->context, 'INNER', $table); return new JoinOnRule($this->context); }