Class JApplicationDaemon

Description

Base class for a Joomla! command line application.

Located in /libraries/joomla/application/daemon.php (line 23)

JApplicationCli
   |
   --JApplicationDaemon
Direct descendents
Class Description
JDaemon Backward Compatability Stub for JApplicationDaemon
Variable Summary
static array $signals
boolean $exiting
integer $processId
boolean $running
Method Summary
static void signal (integer $signal)
JApplicationDaemon __construct ([JInputCli $input = null], [JRegistry $config = null], [JDispatcher $dispatcher = null])
Variables
static array $signals = array(
'SIGHUP',
'SIGINT',
'SIGQUIT',
'SIGILL',
'SIGTRAP',
'SIGABRT',
'SIGIOT',
'SIGBUS',
'SIGFPE',
'SIGUSR1',
'SIGSEGV',
'SIGUSR2',
'SIGPIPE',
'SIGALRM',
'SIGTERM',
'SIGSTKFLT',
'SIGCLD',
'SIGCHLD',
'SIGCONT',
'SIGTSTP',
'SIGTTIN',
'SIGTTOU',
'SIGURG',
'SIGXCPU',
'SIGXFSZ',
'SIGVTALRM',
'SIGPROF',
'SIGWINCH',
'SIGPOLL',
'SIGIO',
'SIGPWR',
'SIGSYS',
'SIGBABY',
'SIG_BLOCK',
'SIG_UNBLOCK',
'SIG_SETMASK'
)
(line 30)
boolean $exiting = false (line 73)
  • var: True if the daemon is in the process of exiting.
  • since: 11.1
  • access: protected
integer $processId = 0 (line 79)
  • var: The process id of the daemon.
  • since: 11.1
  • access: protected
boolean $running = false (line 85)
  • var: True if the daemon is currently running.
  • since: 11.1
  • access: protected

Inherited Variables

Inherited from JApplicationCli

JApplicationCli::$config
JApplicationCli::$dispatcher
JApplicationCli::$input
JApplicationCli::$instance
Methods
static method signal (line 147)

Method to handle POSIX signals.

  • see: pcntl_signal()
  • throws: RuntimeException
  • since: 11.1
  • access: public
static void signal (integer $signal)
  • integer $signal: The received POSIX signal.
Constructor __construct (line 104)

Class constructor.

  • since: 11.1
  • throws: RuntimeException
  • access: public
JApplicationDaemon __construct ([JInputCli $input = null], [JRegistry $config = null], [JDispatcher $dispatcher = null])
  • mixed $input: An optional argument to provide dependency injection for the application's input object. If the argument is a JInputCli object that object will become the application's input object, otherwise a default input object is created.
  • mixed $config: An optional argument to provide dependency injection for the application's config object. If the argument is a JRegistry object that object will become the application's config object, otherwise a default config object is created.
  • mixed $dispatcher: An optional argument to provide dependency injection for the application's event dispatcher. If the argument is a JDispatcher object that object will become the application's event dispatcher, if it is null then the default event dispatcher will be created based on the application's loadDispatcher() method.

Redefinition of:
JApplicationCli::__construct()
Class constructor.

Inherited Methods

Inherited From JApplicationCli

JApplicationCli::__construct()
JApplicationCli::close()
JApplicationCli::doExecute()
JApplicationCli::execute()
JApplicationCli::fetchConfigurationData()
JApplicationCli::get()
JApplicationCli::getInstance()
JApplicationCli::in()
JApplicationCli::loadConfiguration()
JApplicationCli::loadDispatcher()
JApplicationCli::out()
JApplicationCli::registerEvent()
JApplicationCli::set()
JApplicationCli::triggerEvent()

Documentation generated on Mon, 25 Jun 2012 13:53:57 -0500 by phpDocumentor 1.4.4