/** * Loads the records of a given query and stores it * * @return array Records array */ public function loadRecords() { $rows = parent::loadRecords(); // Add the root if it is the starting ID or in the mounts if (!$this->ignoreMounts && (!$this->useMountpoints && $this->uid == 0 || $this->useMountpoints && in_array(0, $this->mountIds))) { $rows['uid'][0] = $this->getRootRecord(); } $this->records = $rows; return $rows; }