Returns the root DSE record.

@return RootDse|null
426516
public function getRootDse()
    {
        $query = $this->newQuery();

        $root = $query->in('')->read()->whereHas($this->schema->objectClass())->first();

        if ($root) {
            return (new RootDse([], $query))
                ->setRawAttributes($root->getAttributes());
        }
    }
987149
public function getParent()
    {
        return $this->owner
            ->hasOne($this->ownerClassName, [ $this->primaryKey => $this->parentIdField ])
            ->one();
    }
56170
public function getDsn()
    {
        if ($this->rawConfig['dsn']) {
            return $this->rawConfig['dsn'];
        }

        if (isset($this->connectionStrings[$this->getType()])) {
            return $this->connectionStrings[$this->getType()]->getDsn();
        }
    }
354887
public function roots()
	{
		return $this->model->newQuery()->whereNull( $this->model->getQualifiedParentColumnName() )->orderBy( $this->model->getQualifiedLeftColumnName() )->orderBy( $this->model->getQualifiedRightColumnName() )->orderBy( $this->model->getQualifiedKeyName() )->get();
	}
1295277
public function getRoot() {

		$parentTable = CoreTables::getTableName( CoreTables::TABLE_CATEGORY );

		return $this->hasOne( Category::class, [ 'id' => 'rootId' ] )->from( "$parentTable as root" );
	}
1038388
public function getPrevSibling()
    {
        // If parent and children are already loaded, avoid database query
        if($this->parent !== null && ($children = $this->parent->internalGetChildren()) !== null)
        {
            for($i=0; $i<count($children); $i++)
            {
                if($children[$i] == $this)
                {
                    return ($i-1 < 0) ? null : $children[$i-1];
                }
            }
        // @codeCoverageIgnoreStart
        }
        // @codeCoverageIgnoreEnd


        $qb = $this->getManager()->getConfiguration()->getBaseQueryBuilder();
        $alias = $this->getManager()->getConfiguration()->getQueryBuilderAlias();

        $qb->andWhere("$alias.".$this->getRightFieldName()." = :rgt1")
            ->setParameter('rgt1', $this->getLeftValue() - 1);
        if($this->hasManyRoots())
        {
            $qb->andWhere("$alias.".$this->getRootFieldName()." = :root")
                ->setParameter('root', $this->getRootValue());
        }

        $q = $qb->getQuery();
		if ($this->getManager()->getConfiguration()->isQueryHintSet()){
			$q = $this->getManager()->addHintToQuery($q);
		}
		$results = $q->getResult();

        if(!$results)
        {
            return null;
        }

        return $this->getManager()->wrapNode($results[0]);
    }
1025032
public function getRoot()
    {
        $tmp_parent = $this->getParent();
        $root = $tmp_parent;
        while ($tmp_parent) {
            $root = $tmp_parent;
            $tmp_parent = $tmp_parent->getParent();
        }

        return $root;
    }
451719
public function dsql()
    {
        $dsql = $this->owner->persistence->initQuery($this->owner);
        $dsql->reset('table');
        $dsql->table($this->foreign_table, $this->foreign_alias);

        return $dsql;
    }
652893
public function getDsn()
    {
        if (!$this->config) {
            return '';
        }
        $dsn = array();
        $path = null;

        if ($this->config->getName()) {
            $path = $this->config->getName();
        }

        if ($this->config->getPath()) {
            $path = $this->config->getPath();
        }

        if ($this->config->getHost()) {
            if ($this->config->getPort()) {
                $dsn[] = sprintf('dbname=%s/%s:%s',
                    $this->config->getHost(),
                    $this->config->getPort(),
                    $path
                );
            } else {
                $dsn[] = sprintf('dbname=%s:%s',
                    $this->config->getHost(),
                    $path
                );
            }
        } else {
            $dsn[] = 'dbname='.$path;
        }

        if ($this->config->getRole()) {
            $dsn[] = 'role='.$this->config->getRole();
        }

        if ($this->config->getChar()) {
            $dsn[] = 'charset='.$this->config->getChar();
        }

        return $this->getPrefix().implode(';', $dsn);
    }
960340
public function getDsn(): string
  {
/*
  # File connection
  $connection = new PDO('sqlite:<filename>', null, null
    array(PDO::ATTR_PERSISTENT => true)
  );

  # Memory connection
  $connection = new PDO('sqlite::memory:', null, null
    array(PDO::ATTR_PERSISTENT => true)
  );
*/
    # Build the DSN
    $_dsn = $this->getDriver().':'.$this->getFilename();

    # Set it
    $this->setDsn($_dsn);

    return $_dsn;
  }
947159
public function getRoot() {
        $objWebClient = $this->getWebClient();

        $strUri = $this->getApiUrl() . '/';
        $arrHeaders = $this->getHeaders();

        $objRequest = $objWebClient->get($strUri, $arrHeaders);

        $this->objResponse = $objRequest->send();
        $strResponse = $this->objResponse->getBody(TRUE);

        return $strResponse;
    }
1221468
public function getSettingsRecord()
    {
        $item = UserPreference::forUser();
        $record = $item
            ->scopeApplyKeyAndUser($this->model, $this->recordCode, $item->userContext)
            ->remember(1440, $this->getCacheKey())
            ->first();

        return $record ?: null;
    }
316318
public function getRoot()
    {
        if ($this->root === null) {
            $this->root = $this->menuFactory->createItem($this->getName());
        }
        return $this->root;
    }
1078745
public function getRecord()
    {
        if (!$this->record && $this->form) {
            if ($this->form->getRecord() && is_a($this->form->getRecord(), 'DataObject')) {
                $this->record = $this->form->getRecord();
            } elseif ($this->form->Controller() && $this->form->Controller()->hasMethod('data')
                    && $this->form->Controller()->data() && is_a($this->form->Controller()->data(), 'DataObject')) {
                $this->record = $this->form->Controller()->data();
            }
        }
        return $this->record;
    }
1101874
public function getParentNode($dsId)
    {
        $parentDsId = $this->getParentDsId($dsId);

        if (null === $parentDsId) {
            return null;
        }

        return $this->dsIdMap[$parentDsId];
    }
700052
public function getPropertyName() {
    $root_property = $this->getRootProperty();
    if ($root_property instanceof TokenNode && $root_property->getType() === T_STRING) {
      return $root_property->getText();
    }
    return NULL;
  }
13416
public function getSettingsRecord()
    {
        $record = $this->model
            ->where('item', $this->recordCode)
            ->remember(1440, $this->getCacheKey())
            ->first();

        return $record ?: null;
    }