classes/Query.php
public function join($table, $alias = null, $on = null, $type = 'INNER JOIN')
    {
        $table = $this->connection->quoteIdentifier($table);

        $this->joins[$alias] = "$type $table $alias ON $on";

        return $this;
    }
public function join($table, $alias = null, $on = null, $type = 'INNER JOIN')
    {
        $table = $this->connection->quoteIdentifier($table);

        $this->joins[$alias] = "$type $table $alias ON $on";

        return $this;
    }
public function join ( $ table , $ alias = null , $ on = null , $ type = 'INNER JOIN' ) { $ table = $ this -> connection -> quoteIdentifier ( $ table ) ; $ this -> joins [ $ alias ] = "$type $table $alias ON $on" ; return $ this ; }
Join a table

@param string $table
@param string $alias
@param string $on
@param string $type
@return $this
Join a table