public function join($table)
    {
        if( !empty($this->currentJoin) ) {
            $this->joins[] = $this->currentJoin;
        }
        $this->currentJoin = array();
        $this->currentJoin['table'] = $table;
        $this->currentJoin['direction'] = 'INNER';
        return $this;
    }
public function join($table)
    {
        if( !empty($this->currentJoin) ) {
            $this->joins[] = $this->currentJoin;
        }
        $this->currentJoin = array();
        $this->currentJoin['table'] = $table;
        $this->currentJoin['direction'] = 'INNER';
        return $this;
    }
public function join ( $ table ) { if ( ! empty ( $ this -> currentJoin ) ) { $ this -> joins [ ] = $ this -> currentJoin ; } $ this -> currentJoin = array ( ) ; $ this -> currentJoin [ 'table' ] = $ table ; $ this -> currentJoin [ 'direction' ] = 'INNER' ; return $ this ; }
Join to a table

@param string $table
@return $this
Join to a table