Documentation

add_cronjob.inc.php

Page-level DocBlock

Table of Contents

Functions

add_cronjob()  : mixed
Anlegen eines Cronjobs

Functions

add_cronjob()

Anlegen eines Cronjobs

add_cronjob(array<string|int, mixed> $parameter) : mixed
Parameters
$parameter : array<string|int, mixed>

folgende Parameter sind möglich:

  • kas_login: das betreffende KAS Login
  • kas_auth_data: die Authentifizierungsdaten
  • kas_auth_type: der Authentifizierungstyp
  • protocol: Cronjob Protokoll: http|https
  • http_url: die Cronjob-URL
  • cronjob_comment: der Cronjobkommentar
  • minute: die ausführende Minute: */1-59|0-59|*
  • hour: die ausführende Stunde: */1-23|1-23|*
  • day_of_month: der ausführende Tag des Monats: 0-31|*
  • month: der ausführende Monat: *
  • day_of_week: der ausführende Wochentag: 0-7|* (Sonntag =0 oder =7)
  • http_user: der HTTP-Auth Benutzer (optional)
  • http_password: das HTTP-Auth Passwort (optional)
  • mail_address: die Mailadresse, welche die Bestätigungsmail erhält: RFC2822 (optional)
  • mail_condition: Bedingungswort: erscheint dieses in der Scriptausgab, so wird _keine_ E-Mail versendet (optional)
  • mail_subject: verwende cronjob_comment als E-Mail-Subject: default|comment (optional, default)
  • is_active: der Cronjob ist aktiv: Y|N (optional, default Y)
Tags
link

Beispiel

throwss

TRUE die Aktion wurde durchgeführt

throwss

missing_parameter ein Pflichtparameter fehlt

throwss

couldnt_get_kas_ressources

throwss

day_of_month_or_day_of_week_incorrect

throwss

day_of_month_syntax_incorrect

throwss

day_of_week_syntax_incorrect

throwss

hour_syntax_incorrect

throwss

http_password_syntax_incorrect

throwss

protocol_syntax_incorrect

throwss

http_url_syntax_incorrect

throwss

http_user_syntax_incorrect

throwss

is_active_syntax_incorrect

throwss

mail_address_syntax_incorrect

throwss

mail_condition_syntax_incorrect

throwss

max_cronjobs_reached

throwss

minute_syntax_incorrect

throwss

month_syntax_incorrect

throwss

time_not_allowed


        
On this page

Search results