SimpleMachines/SMF2.1 — pull request #2101 by MissAllSunday (2014-07-23 15:35:41+00:00)
Title: Scheduled tasks and external tasks

There is a hook for adding external tasks which is great but its limited to plain functions.
Using the task name for everything works great but it would be better to have a specific column for a callable with a larger field (varchar(60)).

This change allows adding full methods to run scheduled task, it is fully compatible with SMF standard function tasks and/or old modifications.

A simple example for adding an external scheduled tasks is as follows:

``` php
'int',
'next_time' => 'int',
'time_offset' => 'int',
'time_regularity' => 'int',
'time_unit' => 'string',
'disabled' => 'int',
'task' => 'string',
'callable' => 'string',
),
array(
0, 0, 0, 1, 'd', 1, 'test', '$sourcedir/Test.php|Test::scheduledTask#',
),
array(
'id_task',
)
);
```

``` php
1,
'notice' => '
It works! it works! muahahahahah',
)
);

return true;
}
}

```