Documentation

File extends AbstractTaskAdapter
in package

File adapter class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
2.1.0

Table of Contents

Properties

$folder  : string|null
Folder
$priority  : string
Queue type

Methods

__construct()  : mixed
Constructor
clear()  : File
Clear jobs out of queue
clearFailed()  : File
Clear failed jobs out of the queue
clearTasks()  : File
Clear all scheduled task
create()  : File
Create file adapter
folder()  : string|null
Get folder (alias)
getEnd()  : int
Get queue end index
getFailedJob()  : mixed
Get failed job
getFailedJobs()  : array<string|int, mixed>
Get adapter failed jobs
getFiles()  : array<string|int, mixed>
Get files from folder
getFolder()  : string|null
Get folder
getFolders()  : array<string|int, mixed>
Get folders
getPriority()  : string
Get queue priority
getStart()  : int
Get queue start index
getStatus()  : int
Get queue job status
getTask()  : Task|null
Get scheduled task
getTaskCount()  : int
Get scheduled tasks count
getTasks()  : array<string|int, mixed>
Get scheduled tasks
hasFailedJob()  : bool
Check if adapter has failed job
hasFailedJobs()  : bool
Check if adapter has failed jobs
hasJobs()  : bool
Check if adapter has jobs
hasTasks()  : bool
Has scheduled tasks
isFifo()  : bool
Is FIFO
isFilo()  : bool
Is FILO
isLifo()  : bool
Is LIFO (alias to FILO)
isLilo()  : bool
Is LILO (alias to FIFO)
pop()  : AbstractJob|null
Pop job off of queue
push()  : File
Push job on to queue
removeTask()  : File
Remove scheduled task
schedule()  : File
Schedule job with queue
setPriority()  : AbstractAdapter
Set queue priority
updateTask()  : File
Update scheduled task

Properties

$folder

Folder

protected string|null $folder = null

Methods

__construct()

Constructor

public __construct(string $folder[, string|null $priority = null ]) : mixed

Instantiate the file object

Parameters
$folder : string
$priority : string|null = null
Tags
throws
Exception

clear()

Clear jobs out of queue

public clear() : File
Return values
File

clearFailed()

Clear failed jobs out of the queue

public clearFailed() : File
Return values
File

clearTasks()

Clear all scheduled task

public clearTasks() : File
Return values
File

create()

Create file adapter

public static create(string $folder[, string|null $priority = null ]) : File
Parameters
$folder : string
$priority : string|null = null
Tags
throws
Exception
Return values
File

folder()

Get folder (alias)

public folder() : string|null
Return values
string|null

getEnd()

Get queue end index

public getEnd() : int
Return values
int

getFailedJob()

Get failed job

public getFailedJob(int $index[, bool $unserialize = true ]) : mixed
Parameters
$index : int
$unserialize : bool = true

getFailedJobs()

Get adapter failed jobs

public getFailedJobs([bool $unserialize = true ]) : array<string|int, mixed>
Parameters
$unserialize : bool = true
Return values
array<string|int, mixed>

getFiles()

Get files from folder

public getFiles(string $folder) : array<string|int, mixed>
Parameters
$folder : string
Return values
array<string|int, mixed>

getFolder()

Get folder

public getFolder() : string|null
Return values
string|null

getFolders()

Get folders

public getFolders(string $folder) : array<string|int, mixed>
Parameters
$folder : string
Return values
array<string|int, mixed>

getPriority()

Get queue priority

public getPriority() : string
Return values
string

getStart()

Get queue start index

public getStart() : int
Return values
int

getStatus()

Get queue job status

public getStatus(int $index) : int
Parameters
$index : int
Return values
int

getTask()

Get scheduled task

public getTask(string $taskId) : Task|null
Parameters
$taskId : string
Return values
Task|null

getTaskCount()

Get scheduled tasks count

public getTaskCount() : int
Return values
int

getTasks()

Get scheduled tasks

public getTasks() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasFailedJob()

Check if adapter has failed job

public hasFailedJob(int $index) : bool
Parameters
$index : int
Return values
bool

hasFailedJobs()

Check if adapter has failed jobs

public hasFailedJobs() : bool
Return values
bool

hasJobs()

Check if adapter has jobs

public hasJobs() : bool
Return values
bool

hasTasks()

Has scheduled tasks

public hasTasks() : bool
Return values
bool

isLifo()

Is LIFO (alias to FILO)

public isLifo() : bool
Return values
bool

isLilo()

Is LILO (alias to FIFO)

public isLilo() : bool
Return values
bool

removeTask()

Remove scheduled task

public removeTask(string $taskId) : File
Parameters
$taskId : string
Return values
File

schedule()

Schedule job with queue

public schedule(Task $task) : File
Parameters
$task : Task
Return values
File

updateTask()

Update scheduled task

public updateTask(Task $task) : File
Parameters
$task : Task
Return values
File

        
On this page

Search results