public function join($type, $table, $condition)
    {
        settype($condition, 'array');

        //The table needle
        $needle = $this->_adapter->getTableNeedle();

        if (strpos($table, $needle) !== 0) {
            $table = $needle.$table;
        }

        $this->join[] = array(
            'type'      => strtoupper($type),
            'table'     => $table,
            'condition' => $condition,
        );

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

        //The table needle
        $needle = $this->_adapter->getTableNeedle();

        if (strpos($table, $needle) !== 0) {
            $table = $needle.$table;
        }

        $this->join[] = array(
            'type'      => strtoupper($type),
            'table'     => $table,
            'condition' => $condition,
        );

        return $this;
    }
public function join ( $ type , $ table , $ condition ) { settype ( $ condition , 'array' ) ; //The table needle $ needle = $ this -> _adapter -> getTableNeedle ( ) ; if ( strpos ( $ table , $ needle ) !== 0 ) { $ table = $ needle . $ table ; } $ this -> join [ ] = array ( 'type' => strtoupper ( $ type ) , 'table' => $ table , 'condition' => $ condition , ) ; return $ this ; }
Built the join clause of the query

@param string        The type of join; empty for a plain JOIN, or "LEFT", "INNER", etc.
@param string        The table name to join to.
@param string|array  Join on this condition.
@return AnDatabaseQuery
Built the join clause of the query