-
Notifications
You must be signed in to change notification settings - Fork 1
/
e_cron.php
33 lines (27 loc) · 905 Bytes
/
e_cron.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* e107 website system
*
* Copyright (C) 2008-2016 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
class timed_userclass_cron // plugin-folder name + '_cron'.
{
function config() // Setup
{
$cron = array();
$cron[] = array(
'name' => "Timed Userclass", // Displayed in admin area. .
'function' => "myFunction", // Name of the function which is defined below.
'category' => 'user', // Choose between: mail, user, content, notify, or backup
'description' => "Processes each user to determine if the timed userclass needs to change" // Displayed in admin area.
);
return $cron;
}
public function myFunction()
{
// Do Something.
}
}