fogproject  1.5.9
About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn’t use any boot disks, or CDs; everything is done via TFTP and PXE.
  Fossies Dox: fogproject-1.5.9.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

FOGCron Class Reference
Inheritance diagram for FOGCron:
[legend]
Collaboration diagram for FOGCron:
[legend]

Static Public Member Functions

static parse ($cron, $lastrun=false)
 
static checkMinutesField ($minutes)
 
static checkHoursField ($hours)
 
static checkDOMField ($dom)
 
static checkMonthField ($month)
 
static checkDOWField ($dow)
 
static shouldRunCron ($time)
 
static buildSpecialCron ($id='')
 
- Static Public Member Functions inherited from FOGBase
static getClass ($class, $data='', $props=false)
 
static getHostItem ( $service=true, $encoded=false, $hostnotrequired=false, $returnmacs=false, $override=false, $mac=false)
 
static getAllBlamedNodes ($Host)
 
static niceDate ($date='now', $utc=false)
 
static formatTime ($time, $format=false, $utc=false)
 
static createSecToken ()
 
static aesencrypt ( $data, $key=false, $enctype='aes-256-cbc')
 
static aesdecrypt ( $encdata, $key=false, $enctype='aes-128-cbc')
 
static parseMacList ( $stringlist, $image=false, $client=false)
 
static getSubObjectIDs ( $object='Host', $findWhere=array(), $getField='id', $not=false, $operator='AND', $orderBy='name', $groupBy=false, $filter='array_unique')
 
static getSetting ($key)
 
static setSetting ($key, $value)
 
static getQueuedStates ()
 
static getQueuedState ()
 
static getCheckedInState ()
 
static getProgressState ()
 
static getCompleteState ()
 
static getCancelledState ()
 
static stringBetween ($string, $start, $end)
 
static stripAndDecode (&$item)
 
static getMasterInterface ($ip_find)
 
static lasterror ()
 
static getFilesize ($path)
 
static wakeUp ($macs)
 
static fastmerge ($array1)
 
static getHash ($file)
 
static attemptLogin ($username, $password)
 
static clearMACLookupTable ()
 
static getMACLookupCount ()
 
static resolveHostname ($host)
 
static getBroadcast ()
 
static randWait ()
 

Static Private Member Functions

static _fit ($str, $num)
 
static _checkField ($field, $min, $max)
 
static _checkIntValue ($value, $min, $max, $extremity)
 

Additional Inherited Members

- Public Member Functions inherited from FOGBase
 __construct ()
 
 __toString ()
 
 orderBy (&$orderBy)
 
- Static Public Attributes inherited from FOGBase
static $locale = ''
 
static $fogpingactive = false
 
static $fogdeleteactive = false
 
static $fogexportactive = false
 
static $pendingMACs = 0
 
static $pendingHosts = 0
 
static $defaultscreen = ''
 
static $pluginsinstalled = array()
 
static $useragent
 
static $foglang
 
static $ajax = false
 
static $post = false
 
static $service = false
 
static $json = false
 
static $newService = false
 
static $scriptname
 
static $querystring
 
static $httpreqwith
 
static $reqmethod
 
static $remoteaddr
 
static $httpreferer
 
static $mySchema = 0
 
static $showhtml = true
 
static $httpproto = false
 
static $httphost = ''
 
static $Host = null
 
- Protected Member Functions inherited from FOGBase
 isLoaded ($key)
 
 setRequest ()
 
 sendData ( $datatosend, $service=true, $array=array())
 
- Static Protected Member Functions inherited from FOGBase
static getActivePlugins ()
 
static fatalError ($txt, $data=array())
 
static error ($txt, $data=array())
 
static debug ($txt, $data=array())
 
static info ($txt, $data=array())
 
static setMessage ($txt, $data=array())
 
static getMessages ()
 
static redirect ($url='')
 
static arrayInsertBefore ( $key, array &$array, $new_key, $new_value)
 
static arrayInsertAfter ( $key, array &$array, $new_key, $new_value)
 
static arrayRemove ($key, array &$array)
 
static arrayFind ( $needle, array $haystack, $ignorecase=false)
 
static resetRequest ()
 
static formatByteSize ($size)
 
static getGlobalModuleStatus ($names=false, $keys=false)
 
static validDate ($date, $format='')
 
static pluralize ($count, $text, $space=false)
 
static diff ($start, $end, $ago=false)
 
static humanify ($diff, $unit)
 
static arrayChangeKey (array &$array, $old_key, $new_key)
 
static byteconvert ($kilobytes)
 
static hex2bin ($hex)
 
static certEncrypt ($data)
 
static certDecrypt ($dataArr, $padding=true)
 
static arrayStrpos ($haystack, $needles, $case=true)
 
static log ( $txt, $curlog, $logfile, $logbrow, $obj, $level=1)
 
static logHistory ($string)
 
static getIPAddress ($force=false)
 
- Protected Attributes inherited from FOGBase
 $isLoaded = array()
 
- Static Protected Attributes inherited from FOGBase
static $strlen
 
static $debug = false
 
static $info = false
 
static $buildSelectBox
 
static $selected
 
static $DB
 
static $FOGFTP
 
static $FOGCore
 
static $EventManager
 
static $HookManager
 
static $TimeZone
 
static $FOGUser
 
static $FOGPageManager
 
static $FOGURLRequests
 
static $FOGSubMenu
 
static $ips = array()
 
static $interface = array()
 
static $searchPages
 

Detailed Description

Definition at line 22 of file fogcron.class.php.

Member Function Documentation

◆ _checkField()

static FOGCron::_checkField (   $field,
  $min,
  $max 
)
staticprivate

Check the fields

Parameters
string$fieldthe field to test
int$minthe minimum the field can have
int$maxthe maximum the field can have
Returns
bool

Definition at line 153 of file fogcron.class.php.

References _checkIntValue().

Referenced by checkDOMField(), checkDOWField(), checkHoursField(), checkMinutesField(), and checkMonthField().

◆ _checkIntValue()

static FOGCron::_checkIntValue (   $value,
  $min,
  $max,
  $extremity 
)
staticprivate

The integer value to test

Parameters
mixed$valueThe value to check
int$minThe minimum the value can be
int$maxThe maximum the value can be
bool$extremityImplicitly test extremeties
Returns
bool

Definition at line 203 of file fogcron.class.php.

References $val.

Referenced by _checkField().

◆ _fit()

static FOGCron::_fit (   $str,
  $num 
)
staticprivate

Verifies the fit of the string

Parameters
string$strthe string to check
int$numthe num to check
Returns
bool

Definition at line 32 of file fogcron.class.php.

References $str, and $test.

Referenced by parse().

◆ buildSpecialCron()

static FOGCron::buildSpecialCron (   $id = '')
static

Build special cron selector.

Parameters
string$idthe id to give if wanted.
Returns
string

Definition at line 292 of file fogcron.class.php.

References $val.

Referenced by FOGPage\deploy(), HostManagementPage\hostPMDisplay(), and FOGPage\newPMDisplay().

◆ checkDOMField()

static FOGCron::checkDOMField (   $dom)
static

Check the day of month field

Parameters
int$domthe value to check
Returns
bool

Definition at line 246 of file fogcron.class.php.

References _checkField().

Referenced by FOGPage\deployPost().

◆ checkDOWField()

static FOGCron::checkDOWField (   $dow)
static

Check the day of week field

Parameters
int$dowthe value to check
Returns
bool

Definition at line 268 of file fogcron.class.php.

References _checkField().

Referenced by FOGPage\deployPost().

◆ checkHoursField()

static FOGCron::checkHoursField (   $hours)
static

Check the hours field

Parameters
int$hoursthe value to check
Returns
bool

Definition at line 235 of file fogcron.class.php.

References _checkField().

Referenced by FOGPage\deployPost().

◆ checkMinutesField()

static FOGCron::checkMinutesField (   $minutes)
static

Check the minutes field

Parameters
int$minutesthe value to check
Returns
bool

Definition at line 224 of file fogcron.class.php.

References _checkField().

Referenced by FOGPage\deployPost().

◆ checkMonthField()

static FOGCron::checkMonthField (   $month)
static

Check the month field

Parameters
int$monththe value to check
Returns
bool

Definition at line 257 of file fogcron.class.php.

References _checkField().

Referenced by FOGPage\deployPost().

◆ parse()

static FOGCron::parse (   $cron,
  $lastrun = false 
)
static

Returns the next run time

Parameters
string$cronthe cron to parse
bool$lastrunshow the last run time
Returns
string

Definition at line 64 of file fogcron.class.php.

References $val, _fit(), and FOGBase\niceDate().

Referenced by Timer\__construct(), and ScheduledTask\getTime().

◆ shouldRunCron()

static FOGCron::shouldRunCron (   $time)
static

Check the time to see if it should be run now

Parameters
DateTime$timethe datetime to test
Returns
bool

Definition at line 279 of file fogcron.class.php.

References FOGBase\niceDate().

Referenced by Timer\shouldRunNow().


The documentation for this class was generated from the following file: