public function refresh_path($path) { $pages = $this->form()->query(Predicates::in('my.page.uid', $path))->submit()->getResults(); $npath = array_map(function ($p) { return $p->getUid(); }, $pages); if (count($path) == count($npath)) { return $npath; } return; }
/** * Return a set of document from their ids * * @param array $ids array of strings, the requested ids * * @return \Prismic\Response the response, including documents and pagination information */ public function getByIDs($ids) { return $this->query(Predicates::in("document.id", $ids)); }