1. Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.

PHP scheduled task

Dec 22, 2015
PHP scheduled task

  • Introduction(top)


    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(top)


    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.
  • Loading...