protected function getDocumentLocation($database, $rid = null, $fetchPlan = null)
    {
        $this->ensureDatabase($database);
        $arguments = array($rid);

        if ($fetchPlan) {
            $arguments[] = $fetchPlan;
        }

        return $this->getLocation('document', $database, $arguments);
    }
protected function getDocumentLocation($database, $rid = null, $fetchPlan = null)
    {
        $this->ensureDatabase($database);
        $arguments = array($rid);

        if ($fetchPlan) {
            $arguments[] = $fetchPlan;
        }

        return $this->getLocation('document', $database, $arguments);
    }
protected function getDocumentLocation ( $ database , $ rid = null , $ fetchPlan = null ) { $ this -> ensureDatabase ( $ database ) ; $ arguments = array ( $ rid ) ; if ( $ fetchPlan ) { $ arguments [ ] = $ fetchPlan ; } return $ this -> getLocation ( 'document' , $ database , $ arguments ) ; }
Returns the URL to fetch a document.

@param string $database
@param string $rid
@param string $fetchPlan
@return string
Returns the URL to fetch a document .