Class JApplicationDaemon

Description

Base class for a Joomla! command line application.

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

JApplicationBase
   |
   --JApplicationCli
      |
      --JApplicationDaemon
Direct descendents
Class Description
 class JDaemon Backward Compatability Stub for JApplicationDaemon
Variable Summary
 static array $signals
 boolean $exiting
 integer $parentId
 integer $processId
 boolean $running
Method Summary
 static void signal (integer $signal)
 JApplicationDaemon __construct ([JInputCli $input = null], [JRegistry $config = null], [JEventDispatcher $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 $parentId = 0 (line 79)
  • var: The parent process id.
  • since: 12.1
  • access: protected
integer $processId = 0 (line 85)
  • var: The process id of the daemon.
  • since: 11.1
  • access: protected
boolean $running = false (line 91)
  • var: True if the daemon is currently running.
  • since: 11.1
  • access: protected

Inherited Variables

Inherited from JApplicationCli

JApplicationCli::$config
JApplicationCli::$instance

Inherited from JApplicationBase

JApplicationBase::$dispatcher
JApplicationBase::$identity
JApplicationBase::$input
Methods
static signal (line 154)

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 110)

Class constructor.

  • since: 11.1
  • throws: RuntimeException
  • access: public
JApplicationDaemon __construct ([JInputCli $input = null], [JRegistry $config = null], [JEventDispatcher $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 JEventDispatcher 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.

Redefined in descendants as:

Inherited Methods

Inherited From JApplicationCli

 JApplicationCli::__construct()
 JApplicationCli::doExecute()
 JApplicationCli::execute()
 JApplicationCli::fetchConfigurationData()
 JApplicationCli::get()
 JApplicationCli::getInstance()
 JApplicationCli::in()
 JApplicationCli::loadConfiguration()
 JApplicationCli::out()
 JApplicationCli::set()

Inherited From JApplicationBase

 JApplicationBase::close()
 JApplicationBase::getIdentity()
 JApplicationBase::loadDispatcher()
 JApplicationBase::loadIdentity()
 JApplicationBase::registerEvent()
 JApplicationBase::triggerEvent()

Documentation generated on Tue, 19 Nov 2013 14:57:45 +0100 by phpDocumentor 1.4.3