\seekquarry\yioop\executablesMediaUpdater

Separate process/command-line script which can be used to update news sources for Yioop and also handle other kinds of activities such as video conversion. This is as an alternative to using the web app for updating. Makes use of the web-apps code.

Summary

Methods
Properties
Constants
__construct()
start()
loop()
getUpdateProperties()
loadJobs()
$update_time
$mail_mode
$media_mode
$jobs
MINIMUM_UPDATE_LOOP_TIME
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

MINIMUM_UPDATE_LOOP_TIME

MINIMUM_UPDATE_LOOP_TIME

Shortest time through one iteration of news updater's loop

Properties

$update_time

$update_time : integer

The last time feeds were checked for updates

Type

integer

$mail_mode

$mail_mode : boolean

If true then it is assumed that mail should be sent using a media updater rather than from within the web app

Type

boolean

$media_mode

$media_mode : string

Controls whether media updating should be viewed as only occurring on the name server or should it be viewed as a distributed process amongst all machines in this Yioop instance

Type

string

$jobs

$jobs : array

List of job this media updater performs

Type

array

Methods

__construct()

__construct() 

Sets up the field variables so that media updating can begin

start()

start() 

This is the function that should be called to get the MediaUpdater to start to start updating. Calls init to handle the command-line arguments then enters news_updaters main loop

loop()

loop() 

Main loop for the news updater.

getUpdateProperties()

getUpdateProperties() 

Makes a request to the name server to find out if we are running as a media updater just on the name server or on both the name server as well as all other machines in the Yioop instance

loadJobs()

loadJobs(array  $jobs_list) 

Given a list of MediaUpdate jobs, updates $this->jobs to contain instantiated objects of the the corresponding jobs, requiring classes that have not been loaded yet as needed.

Parameters

array $jobs_list

list of MediaUpdater jobs