Strata\Model\Taxonomy\Category
Placeholder for post categories
Synopsis
class Category
extends Taxonomy
{
- // Inherited members from WordpressEntity
- public string $permissionLevel;
- // methods
- public void wordpressKey()
- // Inherited methods from Taxonomy
- public static void getNamespaceStringInStrata()
- public static mixed factoryFromWpQuery()
- public void getQueryVar()
- public TaxonomyQuery getQueryAdapter()
- public TaxonomyQuery forEntity()
- public TaxonomyQuery by()
- // Inherited methods from WordpressEntity
- public static string wordpressKey()
- public static void factoryFromKey()
- public string getWordpressKey()
- public void getQueryVar()
- // Inherited methods from Model
- public static void getNamespaceStringInStrata()
- public static void getClassNameSuffix()
- public static ModelEntity getEntity()
- public static void getEntityFromPost()
- // Inherited methods from StrataConfigurableTrait
- public mixed getConfig()
- public mixed extractConfig()
- public mixed setConfig()
- public void configure()
- public mixed hasConfig()
- public boolean containsConfigurations()
- public array getConfiguration()
- protected null normalizeConfiguration()
- // Inherited methods from StrataObjectTrait
- public static mixed factory()
- public static array getFactoryScopes()
- public static mixed staticFactory()
- public static string generateClassPath()
- public static string getClassNameSuffix()
- public static string getNamespaceStringInStrata()
- public static string generateClassName()
- public string getShortName()
- // Inherited methods from QueriableEntityTrait
- public static QueriableEntity repo()
- public Query getQueryAdapter()
- public void resetCurrentQuery()
- public QueriableEntity; query()
- public QueriableEntity date()
- public QueriableEntity orderby()
- public QueriableEntity direction()
- public QueriableEntity status()
- public QueriableEntity where()
- public QueriableEntity orWhere()
- public QueriableEntity limit()
- public QueriableEntity offset()
- public QueriableEntity byAuthorID()
- public void byName()
- public void published()
- public void byRecency()
- public void byPlublication()
- public void byMenuOrder()
- public integer count()
- public array fetch()
- public hash listing()
- public ModelEntity first()
- public array findAll()
- public ModelEntity findById()
- public integer countTotal()
- public string paginate()
- protected array wrapInEntities()
Hierarchy
Extends
Members
protected
-
$activeQuery
—
Strata\Model\CustomPostType\Query
Saves a pointer to the currently active query adapter. -
$configuration
—
array
The configuration cache.
public
-
$permissionLevel
—
string
The permission level required for editing by the model -
$routed
—
Strata\Model\Taxonomy\boolean|array
Specifies whether Strata should attempt to automate routing to the model's default controller when the custom post type's slug is matched in the URL. -
$wpPrefix
—
string
The Wordpress taxonomy identifier prefix
Methods
public
- wordpressKey() — {@inheritdoc}
Inherited from Strata\Model\Taxonomy\Taxonomy
public
- by() — Forces the query to enter get_term_by lookup mode.
- factoryFromWpQuery() — Factories a model entity based on the Wordpress key
- forEntity() — Informs the query to lookup post terms and not general taxonomies.
- getNamespaceStringInStrata() — {@inheritdoc}
- getQueryAdapter() — Return a TaxonomyQuery object on which requests will be ran. Inheriting classes can modify this to suit their needs.
- getQueryVar() — Returns the complete taxonomy query var variable
Inherited from Strata\Model\WordpressEntity
public
- factoryFromKey()
- getQueryVar()
- getWordpressKey() — Returns the internal custom post type slug
- wordpressKey() — Returns the internal custom post type slug
Inherited from Strata\Model\Model
public
- getClassNameSuffix() — {@inheritdoc}
- getEntity() — Returns a ModelEntity related to this object.
- getEntityFromPost()
- getNamespaceStringInStrata() — {@inheritdoc}
Inherited from Strata\Core\StrataConfigurableTrait
protected
- normalizeConfiguration() — Normalizes the configuration cache. This will only run once on the object. It is mainly a safegard against a badly configured value cache.
public
- configure() — Instantiate the configuration cache to the state supplied by $config.
- containsConfigurations() — Returns whether the configuration cache contains something.
- extractConfig() — Intelligently extract data from the configuration array.
- getConfig() — Fetches a value in the configuration array
- getConfiguration() — Returns the object's complete configuration cache.
- hasConfig() — Confirms the presence of a value in the custom post type's configuration array
- setConfig() — Saves a value in the object's configuration array for the duration of the runtime.
Inherited from Strata\Core\StrataObjectTrait
public
- factory() — Instantiates an object that uses the StrataObjectTrait which class name matches the $name value.
- generateClassName() — Generates a valid class name from the $name value.
- generateClassPath() — Generates a possible namespace and classname combination of a Strata objecy. Mainly used to avoid hardcoding the '\\View\\Helper\\' string everywhere (or whatever else would the namespace have been).
- getClassNameSuffix() — Returns the default class name suffix for this object.
- getFactoryScopes() — Returns scopes in which Strata will look in to load objects.
- getNamespaceStringInStrata() — Returns the default namespace path.
- getShortName() — Returns this object's class name without the full namespace.
- staticFactory() — Instantiates an object of the current class.
Inherited from Strata\Model\CustomPostType\QueriableEntityTrait
protected
- wrapInEntities() — Wraps the resultset into entities of the current object type.
public
- byAuthorID() — Adds a 'author' condition to the current query.
- byMenuOrder()
- byName()
- byPlublication()
- byRecency()
- count() — Fetches the number of results the current queries returned.
- countTotal() — Returns the total number of entities of the current type.
- date() — Applies a date query to the querier.
- direction() — Defines the direction on which the orderby() field will be sorted.
- fetch() — Executes the query and resets it anew.
- findAll() — Returns all the possible entities and ends the query.
- findById() — Finds a model entity by it's ID.
- first() — Fetches the first element matching the current query and resets it anew.
- getQueryAdapter() — Return an object inheriting from Query on which requests will be ran. Inheriting classes can modify this to suit their needs.
- limit() — Sets the maximum number of results the current query may return.
- listing() — Executes the query and resets it anew.
- offset() — Sets the starting offset of the current queries result set.
- orWhere() — Allows the branching of different conditions in the same Wordpress query.
- orderby() — Defines fields on which to order the current query.
- paginate() — Paginates the current query. Must be called before the result set has been generated.
- published()
- query() — Starts a wrapped wp_query pattern object. Used to chain parameters It resets the query.
- repo() — Returns an instantiated QueriableEntity to access the repository.
- resetCurrentQuery() — Resets (forgets) the active query.
- status() — Shorthand for setting conditions on the post_status column.
- where() — The default catch all wrapper for WP_Query parameters.