* @copyright 2015 Denis Chenu * @license GPL v3 * @version 0.0.1 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ class cronTest extends PluginBase { protected $storage = 'DbStorage'; static protected $description = 'Test setting of cron'; static protected $name = 'cronTest'; private $sSessionKey; protected $settings = array( 'testInt' => array( 'type'=>'int', 'htmlOptions'=>array( 'min'=>0, ), 'label'=>"Testing int.", 'default'=>2, ), ); /** * Add function to be used in cron event */ public function init() { $this->subscribe('cron','testEcho'); } public function testEcho() { echo "test"; } }