If you look at line 5 in [the source code of the task] you will find the
class declaration
. This will be familiar to you if you are
experienced with OOP in PHP (we assume here that you are). Furthermore there are
some fine-grained rules you must obey when creating the classes (see also,[naming
and coding standards]):
-
Your classname must be exactly like the taskname you are going to implement plus the suffix "Task". In our example case the classname is
MyEchoTask
(constructed by the taskname "myecho
" plus the suffix "task
"). The upper/lower case casing is currently only for better reading. However, it is encouraged that you use it this way. -
The task class you are creating must at least extend "
Task
" to inherit all task specific methods.