Documentation

Core
in package
Uses UtilsProvider

Core for real-queue.

Table of Contents

Properties

$assets  : mixed
$capabilities  : mixed
`real-queue` allows to define multiple capabilities needed for fetching and working the queue.
$executor  : mixed
$persist  : mixed
$pluginCore  : mixed
$query  : mixed
$restQuery  : mixed

Methods

__construct()  : mixed
C'tor.
addCapability()  : mixed
Add a capability which is allowed to query the queue.
currentUserAllowedToQuery()  : mixed
Check if the current user is allowed to query the queue. This only enables frontend assets and UI.
dbDelta()  : mixed
Make sure the database tables are created.
getAssets()  : mixed
Getter.
getExecutor()  : mixed
Getter.
getPersist()  : mixed
Getter.
getPluginConstantPrefix()  : string
Get the prefix of this package so we can utils package natively.
getPluginCore()  : mixed
Getter.
getQuery()  : mixed
Getter.
getRestQuery()  : mixed
Getter.
setupConstants()  : mixed
Make sure the REAL_QUEUE constants are available.

Properties

$assets

private mixed $assets

$capabilities

`real-queue` allows to define multiple capabilities needed for fetching and working the queue.

private mixed $capabilities = ['edit_posts']

For this, you can use Core#addCapability().

$executor

private mixed $executor

$persist

private mixed $persist

$pluginCore

private mixed $pluginCore

$query

private mixed $query

$restQuery

private mixed $restQuery

Methods

__construct()

C'tor.

public __construct(Core $pluginCore) : mixed
Parameters
$pluginCore : Core

addCapability()

Add a capability which is allowed to query the queue.

public addCapability(string $cap) : mixed
Parameters
$cap : string

currentUserAllowedToQuery()

Check if the current user is allowed to query the queue. This only enables frontend assets and UI.

public currentUserAllowedToQuery() : mixed

dbDelta()

Make sure the database tables are created.

public dbDelta(Activator $activator) : mixed
Parameters
$activator : Activator

getAssets()

Getter.

public getAssets() : mixed
Tags
codeCoverageIgnore

getExecutor()

Getter.

public getExecutor() : mixed
Tags
codeCoverageIgnore

getPersist()

Getter.

public getPersist() : mixed
Tags
codeCoverageIgnore

getPluginConstantPrefix()

Get the prefix of this package so we can utils package natively.

public getPluginConstantPrefix() : string
Return values
string

getPluginCore()

Getter.

public getPluginCore() : mixed
Tags
codeCoverageIgnore

getQuery()

Getter.

public getQuery() : mixed
Tags
codeCoverageIgnore

getRestQuery()

Getter.

public getRestQuery() : mixed
Tags
codeCoverageIgnore

setupConstants()

Make sure the REAL_QUEUE constants are available.

public static setupConstants() : mixed

        
On this page

Search results