System_Daemon
[ class tree: System_Daemon ] [ index: System_Daemon ] [ all elements ]

Element index for package System_Daemon

[ a ] [ b ] [ c ] [ d ] [ e ] [ f ] [ g ] [ i ] [ l ] [ m ] [ n ] [ o ] [ p ] [ r ] [ s ] [ u ] [ w ] [ _ ]

_

$_autoRunDir
in file Linux.php, variable System_Daemon_OS_Linux::$_autoRunDir
    Path to autoRun script
$_autoRunDir
in file Fedora.php, variable System_Daemon_OS_Fedora::$_autoRunDir
    Path of init.d scripts
$_autoRunDir
in file OS.php, variable System_Daemon_OS::$_autoRunDir
    Path of init.d scripts
$_autoRunDir
in file RedHat.php, variable System_Daemon_OS_RedHat::$_autoRunDir
    Path of init.d scripts
$_autoRunDir
in file Arch.php, variable System_Daemon_OS_Arch::$_autoRunDir
    Path to autoRun script
$_autoRunTemplatePath
in file Arch.php, variable System_Daemon_OS_Arch::$_autoRunTemplatePath
    Template path
$_autoRunTemplatePath
in file BSD.php, variable System_Daemon_OS_BSD::$_autoRunTemplatePath
    Template path
$_autoRunTemplatePath
in file OS.php, variable System_Daemon_OS::$_autoRunTemplatePath
    Template path
$_autoRunTemplatePath
in file Fedora.php, variable System_Daemon_OS_Fedora::$_autoRunTemplatePath
    Template path
$_autoRunTemplatePath
in file Debian.php, variable System_Daemon_OS_Debian::$_autoRunTemplatePath
    Template path
$_autoRunTemplatePath
in file RedHat.php, variable System_Daemon_OS_RedHat::$_autoRunTemplatePath
    Template path
$_autoRunTemplateReplace
in file OS.php, variable System_Daemon_OS::$_autoRunTemplateReplace
    Replace the following keys with values to convert a template into a read autorun script
$_autoRunTemplateReplace
in file RedHat.php, variable System_Daemon_OS_RedHat::$_autoRunTemplateReplace
    Replace the following keys with values to convert a template into a read autorun script
$_autoRunTemplateReplace
in file Fedora.php, variable System_Daemon_OS_Fedora::$_autoRunTemplateReplace
    Replace the following keys with values to convert a template into a read autorun script
$_autoRunTemplateReplace
in file Debian.php, variable System_Daemon_OS_Debian::$_autoRunTemplateReplace
    Replace the following keys with values to convert a template into a read autorun script
$_definitions
in file Options.php, variable System_Daemon_Options::$_definitions
    Definitions for all Options
$_isDying
in file Daemon.php, variable System_Daemon::$_isDying
    Whether the our daemon is being killed
$_isInitialized
in file Options.php, variable System_Daemon_Options::$_isInitialized
    Wether all the options have been initialized
$_logLevels
in file Daemon.php, variable System_Daemon::$_logLevels
    Available log levels
$_logPhpMapping
in file Daemon.php, variable System_Daemon::$_logPhpMapping
    Available PHP error levels and their meaning in POSIX loglevel terms Some ERROR constants are not supported in all PHP versions and will conditionally be translated from strings to constants, or else: removed from this mapping at start().
$_optionDefinitions
in file Daemon.php, variable System_Daemon::$_optionDefinitions
    Definitions for all Options
$_options
in file Options.php, variable System_Daemon_Options::$_options
    Keep track of active state for all Options
$_optObj
in file Daemon.php, variable System_Daemon::$_optObj
    Holds Option Object
$_osDetails
in file OS.php, variable System_Daemon_OS::$_osDetails
    Hold OS information
$_osObj
in file Daemon.php, variable System_Daemon::$_osObj
    Holds OS Object
$_osVersionFile
in file Fedora.php, variable System_Daemon_OS_Fedora::$_osVersionFile
    On Linux, a distro-specific version file is often telling us enough
$_osVersionFile
in file Linux.php, variable System_Daemon_OS_Linux::$_osVersionFile
    On Linux, a distro-specific version file is often telling us enough
$_osVersionFile
in file Debian.php, variable System_Daemon_OS_Debian::$_osVersionFile
    On Linux, a distro-specific version file is often telling us enough
$_osVersionFile
in file RedHat.php, variable System_Daemon_OS_RedHat::$_osVersionFile
    On Linux, a distro-specific version file is often telling us enough
$_osVersionFile
in file Arch.php, variable System_Daemon_OS_Arch::$_osVersionFile
    On Linux, a distro-specific version file is often telling us enough
$_osVersionFile
in file Ubuntu.php, variable System_Daemon_OS_Ubuntu::$_osVersionFile
    On Linux, a distro-specific version file is often telling us enough
$_processId
in file Daemon.php, variable System_Daemon::$_processId
    The current process identifier
$_processIsChild
in file Daemon.php, variable System_Daemon::$_processIsChild
    Whether the current process is a forked child
$_safeMode
in file Daemon.php, variable System_Daemon::$_safeMode
    Whether SAFE_MODE is on or off. This is important for ini_set behavior
$_sigHandlers
in file Daemon.php, variable System_Daemon::$_sigHandlers
    Available signal handlers setSigHandler can overwrite these values individually.
_allowedTypes
in file Options.php, method System_Daemon_Options::_allowedTypes()
    Compile array of allowed types
_changeIdentity
in file Daemon.php, method System_Daemon::_changeIdentity()
    Change identity of process & resources if needed.
_die
in file Daemon.php, method System_Daemon::_die()
    Sytem_Daemon::_die() Kill the daemon Keep this function as independent from complex logic as possible
_fork
in file Daemon.php, method System_Daemon::_fork()
    Fork process and kill parent process, the heart of the 'daemonization'
_getAncestorCount
in file OS.php, method System_Daemon_OS::_getAncestorCount()
    Get the total parent count of a class
_getAncestors
in file OS.php, method System_Daemon_OS::_getAncestors()
    Get an array of parent classes
_getShortHand
in file OS.php, method System_Daemon_OS::_getShortHand()
    Extracts last part of a classname. e.g. System_Daemon_OS_Ubuntu -> Ubuntu
_ilog
in file Daemon.php, method System_Daemon::_ilog()
    Internal logging function. Bridge between shortcuts like: err(), warning(), info() and the actual log() function
_isValidPidLocation
in file Daemon.php, method System_Daemon::_isValidPidLocation()
    Determine whether pidfilelocation is valid
_mkdirr
in file Daemon.php, method System_Daemon::_mkdirr()
    Recursive alternative to mkdir
_mostSpecific
in file OS.php, method System_Daemon_OS::_mostSpecific()
    Determines how specific an operating system is.
_optionObjSetup
in file Daemon.php, method System_Daemon::_optionObjSetup()
    Sets up Option Object instance
_optionsInit
in file Daemon.php, method System_Daemon::_optionsInit()
    Checks if all the required options are set.
_osObjSetup
in file Daemon.php, method System_Daemon::_osObjSetup()
    Sets up OS instance
_setDefault
in file Options.php, method System_Daemon_Options::_setDefault()
    Sets any option found in $_definitions to its default value
_summon
in file Daemon.php, method System_Daemon::_summon()
    Put the running script in background
_testAutoRunProperties
in file OS.php, method System_Daemon_OS::_testAutoRunProperties()
    Sets daemon specific properties
_validate
in file Options.php, method System_Daemon_Options::_validate()
    Validates any option found in $_definitions
_whatIAm
in file Daemon.php, method System_Daemon::_whatIAm()
    Return what the current process is: child or parent
_writePid
in file Daemon.php, method System_Daemon::_writePid()
    Creates pid dir and writes process id to pid file
__construct
in file OS.php, method System_Daemon_OS::__construct()
    Constructor
__construct
in file Daemon.php, method System_Daemon::__construct()
    Making the class non-abstract with a protected constructor does a better job of preventing instantiation than just marking the class as abstract.
__construct
in file Options.php, method System_Daemon_Options::__construct()
    Constructor
top

a

abbr
in file Daemon.php, method System_Daemon::abbr()
    Abbreviate a string. e.g: Kevin van zonneveld -> Kevin van Z...
alert
in file Daemon.php, method System_Daemon::alert()
    Logging shortcut
autoload
in file Daemon.php, method System_Daemon::autoload()
    Autoload static method for loading classes and interfaces.
Arch.php
procedural page Arch.php
top

b

bug_test_a.php
procedural page bug_test_a.php
bug_test_b.php
procedural page bug_test_b.php
bug_test_c.php
procedural page bug_test_c.php
BSD.php
procedural page BSD.php
top

c

crit
in file Daemon.php, method System_Daemon::crit()
    Logging shortcut
custtemplate.php
procedural page custtemplate.php
top

d

debug
in file Daemon.php, method System_Daemon::debug()
    Logging shortcut
defaultSigHandler
in file Daemon.php, method System_Daemon::defaultSigHandler()
    Default signal handler.
devtest.php
procedural page devtest.php
Debian.php
procedural page Debian.php
Daemon.php
procedural page Daemon.php
top

e

$errors
in file OS.php, variable System_Daemon_OS::$errors
    Holds errors
$errors
in file Options.php, variable System_Daemon_Options::$errors
    Holds errors
emerg
in file Daemon.php, method System_Daemon::emerg()
    Logging shortcut
err
in file Daemon.php, method System_Daemon::err()
    Logging shortcut
Exception.php
procedural page Exception.php
Exception.php
procedural page Exception.php
top

f

factory
in file OS.php, method System_Daemon_OS::factory()
    Loads all the drivers and returns the one for the most specifc OS
fileread
in file Daemon.php, method System_Daemon::fileread()
    Read a file. file_get_contents() leaks memory! (#18031 for more info)
fncProcessJobs
in file bug_test_c.php, function fncProcessJobs()
Fedora.php
procedural page Fedora.php
top

g

getAutoRunPath
in file OS.php, method System_Daemon_OS::getAutoRunPath()
    Returns OS specific path to autoRun file
getAutoRunScript
in file OS.php, method System_Daemon_OS::getAutoRunScript()
    Uses properties to enrich the autuRun Template
getAutoRunTemplate
in file OS.php, method System_Daemon_OS::getAutoRunTemplate()
    Returns a template to base the autuRun script on.
getAutoRunTemplatePath
in file OS.php, method System_Daemon_OS::getAutoRunTemplatePath()
    Returns a template path to base the autuRun script on.
getDataDir
in file OS.php, method System_Daemon_OS::getDataDir()
    Returns the directory where data is stored (like init.d templates) Could be PEAR's data directory but could also be a local one.
getDetails
in file OS.php, method System_Daemon_OS::getDetails()
    Returns array with all the specific details of the loaded OS
getOption
in file Daemon.php, method System_Daemon::getOption()
    Gets any option found in $_optionDefinitions Public interface to talk with with protected option methods
getOption
in file Options.php, method System_Daemon_Options::getOption()
    Retrieves any option found in $_definitions
getOptions
in file Daemon.php, method System_Daemon::getOptions()
    Gets an array of options found
getOptions
in file Options.php, method System_Daemon_Options::getOptions()
    Gets an array of options found in $_definitions
top

i

info
in file Daemon.php, method System_Daemon::info()
    Logging shortcut
init
in file Options.php, method System_Daemon_Options::init()
    Checks if all the required options are set & met.
isDying
in file Daemon.php, method System_Daemon::isDying()
    Whether the our daemon is being killed, you might want to include this in your loop
isInBackground
in file Daemon.php, method System_Daemon::isInBackground()
    Whether the class is already running in the background
isInitialized
in file Options.php, method System_Daemon_Options::isInitialized()
    Wether options are initialized
isInstalled
in file BSD.php, method System_Daemon_OS_BSD::isInstalled()
    Determines wether the system is compatible with this OS
isInstalled
in file Linux.php, method System_Daemon_OS_Linux::isInstalled()
    Determines wether the system is compatible with this OS
isInstalled
in file Arch.php, method System_Daemon_OS_Arch::isInstalled()
    Determines wether the system is compatible with this OS
isInstalled
in file Windows.php, method System_Daemon_OS_Windows::isInstalled()
    Determines wether this system is compatible with this OS
isInstalled
in file OS.php, method System_Daemon_OS::isInstalled()
    Determines wether the system is compatible with this OS
isRunning
in file Daemon.php, method System_Daemon::isRunning()
    Check if a previous process with same pidfile was already running
isWritable
in file OS.php, method System_Daemon_OS::isWritable()
    A 'better' is_writable. Taken from PHP.NET comments:
iterate
in file Daemon.php, method System_Daemon::iterate()
    Protects your daemon by e.g. clearing statcache. Can optionally be used as a replacement for sleep as well.
top

l

log
in file Daemon.php, method System_Daemon::log()
    Almost every deamon requires a log file, this function can facilitate that. Also handles class-generated errors, chooses either PEAR handling or PEAR-independant handling, depending on: self::opt('usePEAR').
LOG_ALERT
in file Daemon.php, class constant System_Daemon::LOG_ALERT
    Immediate action required (will throw a System_Daemon_Exception as well)
LOG_CRIT
in file Daemon.php, class constant System_Daemon::LOG_CRIT
    Critical conditions (will throw a System_Daemon_Exception as well)
LOG_DEBUG
in file Daemon.php, class constant System_Daemon::LOG_DEBUG
    Debug-level messages
LOG_EMERG
in file Daemon.php, class constant System_Daemon::LOG_EMERG
    System is unusable (will throw a System_Daemon_Exception as well)
LOG_ERR
in file Daemon.php, class constant System_Daemon::LOG_ERR
    Error conditions
LOG_INFO
in file Daemon.php, class constant System_Daemon::LOG_INFO
    Informational
LOG_NOTICE
in file Daemon.php, class constant System_Daemon::LOG_NOTICE
    Normal but significant
LOG_WARNING
in file Daemon.php, class constant System_Daemon::LOG_WARNING
    Warning conditions
leakplugger.php
procedural page leakplugger.php
logparser.php
procedural page logparser.php
Linux.php
procedural page Linux.php
top

m

myHandler
in file signals.php, function myHandler()
top

n

notice
in file Daemon.php, method System_Daemon::notice()
    Logging shortcut
nopear.php
procedural page nopear.php
top

o

opt
in file Daemon.php, method System_Daemon::opt()
    Shortcut for getOption & setOption
Options.php
procedural page Options.php
OS.php
procedural page OS.php
top

p

phpErrors
in file Daemon.php, method System_Daemon::phpErrors()
    Catches PHP Errors and forwards them to log function
pearlog.php
procedural page pearlog.php
phperrtest.php
procedural page phperrtest.php
top

r

replaceFuncs
in file Options.php, method System_Daemon_Options::replaceFuncs()
    Callback function to replace function calls in defaults
replaceVars
in file Options.php, method System_Daemon_Options::replaceVars()
    Callback function to replace variables in defaults
restart
in file Daemon.php, method System_Daemon::restart()
    Restart daemon process.
RedHat.php
procedural page RedHat.php
top

s

semantify
in file Daemon.php, method System_Daemon::semantify()
    Tries to return the most significant information as a string based on any given argument.
setOption
in file Daemon.php, method System_Daemon::setOption()
    Sets any option found in $_optionDefinitions Public interface to talk with with protected option methods
setOption
in file Options.php, method System_Daemon_Options::setOption()
    Sets any option found in $_definitions
setOptions
in file Options.php, method System_Daemon_Options::setOptions()
    Sets an array of options found in $_definitions
setOptions
in file Daemon.php, method System_Daemon::setOptions()
    Sets an array of options found in $_optionDefinitions Public interface to talk with with protected option methods
setSigHandler
in file Daemon.php, method System_Daemon::setSigHandler()
    Overrule or add signal handlers.
start
in file Daemon.php, method System_Daemon::start()
    Spawn daemon process.
stop
in file Daemon.php, method System_Daemon::stop()
    Stop daemon process.
strIsUnix
in file Options.php, method System_Daemon_Options::strIsUnix()
    Check if a string has a unix proof format (stripped spaces, special chars, etc)
strIsUnixFile
in file Options.php, method System_Daemon_Options::strIsUnixFile()
    Check if a string has a unix proof file-format (stripped spaces, special chars, etc)
strToUnix
in file Options.php, method System_Daemon_Options::strToUnix()
    Convert a string to a unix proof format (strip spaces, special chars, etc)
System_Daemon
in file Daemon.php, class System_Daemon
    System_Daemon. Create daemons with practicle functions like System_Daemon::start()
signals.php
procedural page signals.php
simple.php
procedural page simple.php
System_Daemon_Exception
in file Exception.php, class System_Daemon_Exception
    An exception thrown by System_Daemon when it encounters an unrecoverable error.
System_Daemon_Options
in file Options.php, class System_Daemon_Options
    Mechanism for validating, getting and setting a predefined set of options.
System_Daemon_OS
in file OS.php, class System_Daemon_OS
    Operating System focussed functionality.
System_Daemon_OS_Arch
in file Arch.php, class System_Daemon_OS_Arch
    A System_Daemon_OS driver for Arch Linux
System_Daemon_OS_BSD
in file BSD.php, class System_Daemon_OS_BSD
    A System_Daemon_OS driver for BSD
System_Daemon_OS_Debian
in file Debian.php, class System_Daemon_OS_Debian
    A System_Daemon_OS driver for Debian based Operating Systems (including Ubuntu)
System_Daemon_OS_Exception
in file Exception.php, class System_Daemon_OS_Exception
    An exception thrown by System_Daemon_OS when it encounters an unrecoverable error.
System_Daemon_OS_Fedora
in file Fedora.php, class System_Daemon_OS_Fedora
    A System_Daemon_OS driver for Fedora based Operating Systems
System_Daemon_OS_Linux
in file Linux.php, class System_Daemon_OS_Linux
    A System_Daemon_OS driver for Linux based Operating Systems
System_Daemon_OS_RedHat
in file RedHat.php, class System_Daemon_OS_RedHat
    A System_Daemon_OS driver for RedHat based Operating Systems
System_Daemon_OS_Ubuntu
in file Ubuntu.php, class System_Daemon_OS_Ubuntu
    A System_Daemon_OS driver for Ubuntu. Based on Debian
System_Daemon_OS_Windows
in file Windows.php, class System_Daemon_OS_Windows
    A System_Daemon_OS driver for Windows
top

u

Ubuntu.php
procedural page Ubuntu.php
top

w

Windows.php
procedural page Windows.php
warning
in file Daemon.php, method System_Daemon::warning()
    Logging shortcut
writeAutoRun
in file Daemon.php, method System_Daemon::writeAutoRun()
    Uses OS class to write an: 'init.d' script on the filesystem
writeAutoRun
in file OS.php, method System_Daemon_OS::writeAutoRun()
    Writes an: 'init.d' script on the filesystem combining
top

Documentation generated on Mon, 11 Mar 2019 15:47:42 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.