code/libraries/joomlatools/library/database/query/select.php
public function join($table, $condition = null, $type = 'LEFT')
    {
        settype($table, 'array');

        $data = array(
            'table'     => current($table),
            'condition' => $condition,
            'type'      => $type
        );

        if (is_string(key($table))) {
            $this->join[key($table)] = $data;
        } else {
            $this->join[] = $data;
        }

        return $this;
    }
public function join($table, $condition = null, $type = 'LEFT')
    {
        settype($table, 'array');

        $data = array(
            'table'     => current($table),
            'condition' => $condition,
            'type'      => $type
        );

        if (is_string(key($table))) {
            $this->join[key($table)] = $data;
        } else {
            $this->join[] = $data;
        }

        return $this;
    }
public function join ( $ table , $ condition = null , $ type = 'LEFT' ) { settype ( $ table , 'array' ) ; $ data = array ( 'table' => current ( $ table ) , 'condition' => $ condition , 'type' => $ type ) ; if ( is_string ( key ( $ table ) ) ) { $ this -> join [ key ( $ table ) ] = $ data ; } else { $ this -> join [ ] = $ data ; } return $ this ; }
Build the join clause

@param string $table      The table name to join to.
@param string $condition  The join condition statement.
@param string|array $type The type of join; empty for a plain JOIN, or "LEFT", "INNER", etc.
@return $this
Build the join clause