PHP Class UploadWorker, laraworker

Inheritance: extends Illuminate\Console\Command
Show file Open project: iron-io/laraworker

Protected Properties

Property Type Description
$description
$iron_worker_name
$laravel
$name
$subscriber_url
$upload_all
$worker
$worker_file_name
$worker_params
$workers
$workers_dir

Public Methods

Method Description
__construct ( )
fire ( )

Protected Methods

Method 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 method

public __construct ( )

fire() public method

public fire ( )

getCurrentSubscribers() protected method

Get the current subscriber list.
protected getCurrentSubscribers ( $queue_name ) : array
$queue_name
return array

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array

getPushType() protected method

Get the push type for the queue.
protected getPushType ( $queue_name ) : string
$queue_name
return string

getQueue() protected method

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

getQueueOptions() protected method

Get the queue options.
protected getQueueOptions ( $queue_name ) : array
$queue_name
return array

getSubscriberList() protected method

Get the current subscribers for the queue.
protected getSubscriberList ( $queue_name ) : array
$queue_name
return array

init() protected method

protected init ( )

need_to_update_queue() protected method

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

remove_extension() protected method

Remove extension of the file
protected remove_extension ( $filename ) : mixed
$filename
return mixed

show_workers_queues_list() protected method

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

update_queue() protected method

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

upload_worker() protected method

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

Property Details

$description protected property

protected $description

$iron_worker_name protected property

protected $iron_worker_name

$laravel protected property

protected $laravel

$name protected property

protected $name

$subscriber_url protected property

protected $subscriber_url

$upload_all protected property

protected $upload_all

$worker protected property

protected $worker

$worker_file_name protected property

protected $worker_file_name

$worker_params protected property

protected $worker_params

$workers protected property

protected $workers

$workers_dir protected property

protected $workers_dir