Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 /**
  * 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));
 }