• Payment Plugins Poll

    We need your feedback on the need for updated payment plugins. Please go here and give us your feedback.

  • Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

PHP scheduled task

  • Views Views: 13,085
  • Last updated Last updated:
  • Introduction​


    The cron PHP plugin allows you to run PHP scripts on a regular basis. This can be useful for setting up custom notifications, running maintenance work on your data etc.

    The PHP scheduled task plugin will only run if the Fabrik Cron System Plug-in is installed.

    Options​


    cron-php.png

    • PHP Script - Located in plugins/fabrik_cron/php/scripts this is the script that will be run
    • PHP Set up - Allows you to define variables which can then be accessed in your PHP script. This allows you to create more generic scripts whose parameters can then be modified from this editor window.
    On recent version, if you want your script not being triggered any more, you may add the following line :
    PHP:
    $this->shouldReschedule(false);
    It should be at the end of the script or followed by a "return;" statement if you want to immediatly "exit" the script. It will be unpublished, and a log line to that effect added.

    Set variable $processed in your php code to get the number in Fabrik's backend "Run" message "xy records updated".
Back
Top