]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/class_BaseFrameworkSystem.php
Registration form nearly done, partial stub support added
[shipsimu.git] / inc / classes / main / class_BaseFrameworkSystem.php
index c1f216eee8f143fe14afa661d16bac5f7944b40d..5e923ad937c1c442a27a225f8eb3c01d266a745d 100644 (file)
@@ -901,6 +901,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                // Output it
                ApplicationEntryPoint::app_die("<strong>Debug output:</strong>".$content);
        }
+
+       /**
+        * Output a partial stub message for the given method name
+        *
+        * @param       $methodName             Name of the partially finished method
+        * @return      void
+        */
+       protected function partialStub ($methodName) {
+               // Debug instance is there?
+               if (!is_null($this->getDebugInstance())) {
+                       // Output stub message
+                       $this->getDebugInstance()->output(sprintf("[%s:] Partial stub!<br />\n",
+                               $methodName
+                       ));
+               } else {
+                       // Trigger an error
+                       trigger_error(sprintf("[%s:] Partial stub!", $methodName));
+               }
+       }
 }
 
 // [EOF]