private function getProperty($name) { if (!isset($this->properties)) { $q = $this->inner->getBaseResourceQuery(); $q = $q->amend(['where' => ['r.resource_id', '=', $this->resourceId, \PDO::PARAM_INT]]); $this->properties = $q->queryFetchSingleRow(); } if (!isset($this->properties[$name])) { throw new Error("Invalid property: {$name}"); } return $this->properties[$name]; }
/** * ``` * [ * 'taxonomy' => string, * 'linkedTo' => int (<resourceId>), * 'childOf' => int|array<int> (<resourceId> or array of <resourceId>) * 'status' => string, * 'limit' => int, * 'offset' => int, * ] * ``` * @param array $termQuery * @return array */ public function listTerms(array $termQuery) { return $this->inner->listTerms($termQuery); }