Module Queue

class Queue extends AbstractModel

Properties summary

Type Property Description
Service $service The related service
Domain $domain The related domain

Methods summary

Return Type Method Name Description
createTable(bool|false $drop = false) Create table schema
Builder scopeIncomplete(Builder $query) Where status is unpaid.
static bool add(string $serviceType, int $serviceId, string $module, string $moduleAction, string $lastAttemptError) Add module queue entry.
static bool resolve(string $serviceType, int $serviceId, string $module, string $moduleAction) Resolve a module queue entry.
BelongsTo|Service service() -
BelongsTo|Domain domain() -

Details

createTable (bool|false $drop = false)

Create table schema

Parameters

bool|false $drop Drop pre-existing tables

Builder scopeIncomplete (Builder $query)

Where status is unpaid.

Parameters

Builder $query

Return Value

Builder

static bool add (string $serviceType, int $serviceId, string $module, string $moduleAction, string $lastAttemptError)

Add module queue entry.

Parameters

string $serviceType
int $serviceId
string $module
string $moduleAction
string $lastAttemptError

Return Value

bool

static bool resolve (string $serviceType, int $serviceId, string $module, string $moduleAction)

Resolve a module queue entry.

Parameters

string $serviceType
int $serviceId
string $module
string $moduleAction

Return Value

bool

BelongsTo|Service service ()

Return Value

BelongsTo|Service

BelongsTo|Domain domain ()

Return Value

BelongsTo|Domain