The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Proper usage of log_cron_action()
When using function log_cron_action(), the $nextitem parameter... What's it for? Does it tell the php engine to exit the cron script and exec the next cron script in order?
If so, how would you go about logging different cron actions within the same script? Can you exec the function without $nextitem and then on the last call to the function only, include the $nextitem var? I'm confused, never wrote cron scripts before. Thanks |
#2
|
||||
|
||||
Looking at the function definition
// description = action that was performed // $nextitem is an array containing the information for this cronjob // $phrased is set to true if this action is phrased function log_cron_action($description, $nextitem, $phrased = 0) Only two array elements are used in the function,' loglevel' and 'varname'. |
#3
|
||||
|
||||
ah yes, i see now. loglevel is whether or not to log the task in the log, (1 = yes / 0 = no) and varname is self explainatory. It's a bit misleading for jelsoft to have named it $nextitem, as it's name implies that it somehow calls to or points to the next item in line for scheduled tasks, etc... no biggie, got it now, thank you.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|