Alternc
3.2
Alternc logiel libre pour l'hébergement
|
This class manage web-cron tasks. More...
Public Member Functions | |
m_cron () | |
Constructor. | |
schedule () | |
lst_cron () | |
List the crontab for the current user. | |
hook_menu () | |
update ($arr) | |
update the crontab | |
delete_one ($id) | |
delete a crontab | |
valid_schedule ($s) | |
validate a crontab schedule | |
hook_quota_get () | |
hook for quota computation |
Private Member Functions | |
_update_one ($url, $user, $password, $email, $schedule, $id=null) | |
update a crontab, |
This class manage web-cron tasks.
Definition at line 29 of file m_cron.php.
|
private |
update a crontab,
Definition at line 115 of file m_cron.php.
References $cuid, $db, $err, $password, $q, $query, $user, checkmail(), delete_one(), and valid_schedule().
Referenced by update().
delete_one | ( | $id | ) |
delete a crontab
$id | the id of the crontab to delete |
Definition at line 104 of file m_cron.php.
References $cuid, $db, and $err.
Referenced by _update_one().
hook_menu | ( | ) |
Definition at line 70 of file m_cron.php.
hook_quota_get | ( | ) |
hook for quota computation
Definition at line 178 of file m_cron.php.
lst_cron | ( | ) |
List the crontab for the current user.
Definition at line 51 of file m_cron.php.
References $cuid, $db, $err, and $r.
m_cron | ( | ) |
schedule | ( | ) |
Definition at line 38 of file m_cron.php.
Referenced by valid_schedule().
update | ( | $arr | ) |
update the crontab
$arr | array the crontab information, including its ID |
Definition at line 86 of file m_cron.php.
References _update_one(), and isset.
valid_schedule | ( | $s | ) |
validate a crontab schedule
$s | array schedule paramters |
Definition at line 165 of file m_cron.php.
References $r, and schedule().
Referenced by _update_one().