Added accept() and doShutdown() to Taskable as this will always be needed.
[core.git] / inc / classes / interfaces / tasks / class_Taskable.php
index 9ec1a71..b1915b9 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]