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

        if (strpos($resource, $this->_prefix) !== 0) {
            $resource = $this->_prefix.$resource;
        }

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

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

        if (strpos($resource, $this->_prefix) !== 0) {
            $resource = $this->_prefix.$resource;
        }

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

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

@param string       $type      The type of join; empty for a plain JOIN, or "LEFT", "INNER", etc.
@param string       $resource  The table name to join to.
@param string|array $condition Join on this condition.

@return AnDomainQuery
Built the join clause of the query .