\seekquarry\yioopcontrollers

Namespaces

components

Classes

ApiController Controller used mainly for handling JS requests for Help Wiki Pages
ArchiveController Fetcher machines also act as archives for complete caches of web pages, this controller is used to handle access to these web page caches
ClassifierController This class handles XmlHttpRequests to label documents during classifier construction.
Controller Base controller class for all controllers on the SeekQuarry site.
FetchController This class handles data coming to a queue_server from a fetcher Basically, it receives the data from the fetcher and saves it into various files for later processing by the queue server.
GroupController Controller used to handle user group activities outside of the admin panel setting. This either could be because the admin panel is "collapsed" or because the request concerns a wiki page.
JobsController This class is used to handle requests from a MediaUpdater to a name server There are three main types of requests: getUpdateProperties, and for any job that the MediaUpdater might be running, its getTasks, and putTasks request. getUpdateProperties is supposed to provide configuration settings for the MediaUpdater. A MediaUpdater might be running several periodic jobs. The getTasks requests of a job is used to see if there is any new work available of that job type on the name server. A putTasks request is used to handle any computed data sent back from a MediaUpdater to the name server.
MachineController This class handles requests from a computer that is managing several fetchers and queue_servers. This controller might be used to start, stop fetchers/queue_server as well as get status on the active fetchers
RegisterController Controller used to handle account registration and retrieval for the Yioop website. Also handles data for suggest a url
StaticController This controller is used by the Yioop web site to display PUBLIC_GROUP_ID pages more like static forward facing pages.
TestsController Controller used to handle search requests to SeekQuarry search site. Used to both get and display search results.

Functions

e()

e(string  $text) 

shorthand for echo

Parameters

string $text

string to send to the current output

exceptionErrorHandler()

exceptionErrorHandler(integer  $errno, string  $errstr, string  $errfile, integer  $errline) 

Error handler so catch errors as exceptions too

Parameters

integer $errno

number code of error

string $errstr

text of error message

string $errfile

filename of file in which error occurred

integer $errline

line number of error

tl()

tl() : string

Translate the supplied arguments into the current locale.

This function is a convenience copy of the same function

Returns

string —

translated string