QueriedObject final readonly class
Minn\Runtime\QueriedObject · public/minn/src/Minn/Runtime/QueriedObject.php · 70 lines
Which object a query is "about", read from its flags and variables: a term (by id or slug), a post type, the posts page, the current post, or an author. The caller materialises the record; this only decides where to look.
Uses 2
Constants and properties
| prop | readonly string $kind | Promoted from the constructor. |
| prop | readonly string $field | Promoted from the constructor. |
| prop | readonly string|int $value | Promoted from the constructor. |
| prop | readonly string $taxonomy | Promoted from the constructor. |
Public
| new | __construct(string $kind, string $field = '', string|int $value = '', string $taxonomy = '')# |
| |||||||||
| static | locate(array $vars, array $flags, Minn\Runtime\Registry $registry, callable $option): self# | The queried object the query vars and flags point at.
|
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | taxonomyTerm(array $vars, Minn\Runtime\Registry $registry): self# |
Nothing matches.