Queue
Module Queue
class
Queue extends AbstractModel
Properties summary
Type | Property | Description | |
---|---|---|---|
protected | $columnMap | ||
protected | $table | ||
protected | $primaryKey | ||
protected | $casts | ||
protected | $dates | ||
protected | $fillable | ||
Collection|Service | $service | The related service | |
Collection|Domain | $domain | The related domain | |
Collection|Addon | $addon | 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. | |
string | getLastAttemptErrorAttribute() | Ensure the Last Attempt Error is populated on display when empty. | |
setLastAttemptErrorAttribute(string $value) | Ensure the Last Attempt Error is populated on display when empty. | ||
static bool | resolve(string $serviceType, int $serviceId, string $module, string $moduleAction) | Resolve a module queue entry. | |
BelongsTo|Service | service() | - | |
BelongsTo|Domain | domain() | - | |
BelongsTo|Addon | addon() | - |
Details
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.
string
getLastAttemptErrorAttribute ()
Ensure the Last Attempt Error is populated on display when empty.
setLastAttemptErrorAttribute (string $value)
Ensure the Last Attempt Error is populated on display when empty.
As we are using a GET mutator, the set mutator appears to be required
static bool
resolve (string $serviceType, int $serviceId, string $module, string $moduleAction)
Resolve a module queue entry.