Task Structure

All files containing the definition of a task class follow a common well formed structure:

  • Include/require statements to import all required classes

  • The class declaration and definition

  • The class's properties

  • The class's constructor

  • Setter methods for each XML attribute

  • The init() method

  • The main() method

  • Arbitrary private (or protected) class methods