Added accept() and doShutdown() to Taskable as this will always be needed.
[core.git] / inc / classes / interfaces / tasks / class_Taskable.php
index 9ec1a71179299466943aacfb6e91282a0b705eb7..b1915b9270291f801a53478ba6ab4f1202db79b1 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface Taskable extends FrameworkInterface {
+       /**
+        * Accepts the visitor to process the visitor
+        *
+        * @param       $visitorInstance        An instance of a Visitor class
+        * @return      void
+        */
+       function accept (Visitor $visitorInstance);
+
        /**
         * Executes the task
         *
         * @return      void
         */
        function executeTask ();
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        */
+       function doShutdown ();
 }
 
 // [EOF]