PHP Class UploadWorker, laraworker

Inheritance: extends Illuminate\Console\Command
Afficher le fichier Open project: iron-io/laraworker

Protected Properties

Свойство Type Description
$description
$iron_worker_name
$laravel
$name
$subscriber_url
$upload_all
$worker
$worker_file_name
$worker_params
$workers
$workers_dir

Méthodes publiques

Méthode Description
__construct ( )
fire ( )

Méthodes protégées

Méthode Description
getCurrentSubscribers ( $queue_name ) : array Get the current subscriber list.
getOptions ( ) : array Get the console command options.
getPushType ( $queue_name ) : string Get the push type for the queue.
getQueue ( $queue_name ) : object Get the queue information from Iron.io.
getQueueOptions ( $queue_name ) : array Get the queue options.
getSubscriberList ( $queue_name ) : array Get the current subscribers for the queue.
init ( )
need_to_update_queue ( $queue_name ) : boolean Get list of subscribers and compare it with current subscriber url
remove_extension ( $filename ) : mixed Remove extension of the file
show_workers_queues_list ( $workers ) : mixed Show list of the uploaded workers and created/updated queues
update_queue ( $iron, $queue_name ) Update push queue
upload_worker ( $worker_name, $worker_file_name ) Upload worker

Method Details

__construct() public méthode

public __construct ( )

fire() public méthode

public fire ( )

getCurrentSubscribers() protected méthode

Get the current subscriber list.
protected getCurrentSubscribers ( $queue_name ) : array
$queue_name
Résultat array

getOptions() protected méthode

Get the console command options.
protected getOptions ( ) : array
Résultat array

getPushType() protected méthode

Get the push type for the queue.
protected getPushType ( $queue_name ) : string
$queue_name
Résultat string

getQueue() protected méthode

Get the queue information from Iron.io.
protected getQueue ( $queue_name ) : object
$queue_name
Résultat object

getQueueOptions() protected méthode

Get the queue options.
protected getQueueOptions ( $queue_name ) : array
$queue_name
Résultat array

getSubscriberList() protected méthode

Get the current subscribers for the queue.
protected getSubscriberList ( $queue_name ) : array
$queue_name
Résultat array

init() protected méthode

protected init ( )

need_to_update_queue() protected méthode

Get list of subscribers and compare it with current subscriber url
protected need_to_update_queue ( $queue_name ) : boolean
$queue_name
Résultat boolean

remove_extension() protected méthode

Remove extension of the file
protected remove_extension ( $filename ) : mixed
$filename
Résultat mixed

show_workers_queues_list() protected méthode

Show list of the uploaded workers and created/updated queues
protected show_workers_queues_list ( $workers ) : mixed
$workers
Résultat mixed

update_queue() protected méthode

Update push queue
protected update_queue ( $iron, $queue_name )
$iron
$queue_name

upload_worker() protected méthode

Upload worker
protected upload_worker ( $worker_name, $worker_file_name )
$worker_name
$worker_file_name

Property Details

$description protected_oe property

protected $description

$iron_worker_name protected_oe property

protected $iron_worker_name

$laravel protected_oe property

protected $laravel

$name protected_oe property

protected $name

$subscriber_url protected_oe property

protected $subscriber_url

$upload_all protected_oe property

protected $upload_all

$worker protected_oe property

protected $worker

$worker_file_name protected_oe property

protected $worker_file_name

$worker_params protected_oe property

protected $worker_params

$workers protected_oe property

protected $workers

$workers_dir protected_oe property

protected $workers_dir