]> git.mxchange.org Git - hub.git/commitdiff
Tasks are now visited
authorRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 14:33:59 +0000 (14:33 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 14:33:59 +0000 (14:33 +0000)
application/hub/main/tasks/class_
application/hub/main/tasks/hub/ping/class_HubPingTask.php
application/hub/main/tasks/hub/update/class_HubUpdateCheckTask.php

index bc53b4f412a6571e378f5b70175dc7273bb37106..b0b42b375d88998a54be87a3354a5933f7d19bce 100644 (file)
@@ -53,7 +53,8 @@ class ???Task extends BaseTask implements Taskable, Visitable {
         * @todo        0%
         */
        public function accept (Visitor $visitorInstance) {
-               $this->partialStub('Please implement this method. visitor=' . $visitorInstance->__toString());
+               // Visit this task
+               $visitorInstance->visitTask($this);
        }
 
        /**
index c0a6ca27f63edcbd49e0f1168a72f8deae5cd353..ba3d37dd2e284a65a381e481be6cb36b79d807a7 100644 (file)
@@ -63,7 +63,8 @@ class HubPingTask extends BaseTask implements Visitable, Taskable {
         * @todo        0%
         */
        public function accept (Visitor $visitorInstance) {
-               $this->partialStub('Please implement this method. visitor='.$visitorInstance->__toString());
+               // Visit this task
+               $visitorInstance->visitTask($this);
        }
 
        /**
index 87c5604eb3069db6997a767da8487393880d7495..5cc4b9a8b6f0897dd7568b7d5082d1a3773097c1 100644 (file)
@@ -53,7 +53,8 @@ class HubUpdateCheckTask extends BaseTask implements Visitable, Taskable {
         * @todo        0%
         */
        public function accept (Visitor $visitorInstance) {
-               $this->partialStub('Please implement this method. visitor='.$visitorInstance->__toString());
+               // Visit this task
+               $visitorInstance->visitTask($this);
        }
 
        /**