Strata\Model\CustomPostType\Registrar\CustomPostTypeAdminMenuRegistrar

Registers autoloaded Models' sub menu pages.

    Synopsis

    class CustomPostTypeAdminMenuRegistrar extends Registrar {
    • // Inherited members from Registrar
    • protected CustomPostType $model;
    • // Inherited methods from Registrar
    • public void __construct()
    }

    Hierarchy

    Members

    protected

    Methods

    public

    • action_addAdminMenus() — Wordpress callback that attemps to register additional administration links in Wordpress's backend based on the attached model.
    • register() — Registers admin menus if a configuration is found

    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.