use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
use Org\Mxchange\CoreFramework\Loader\ClassLoader;
use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Registry\Registerable;
use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
use Org\Mxchange\CoreFramework\Utils\Strings\StringUtils;
* @todo Nothing to add?
*/
public function assignExtraTemplateData (CompileableTemplate $templateInstance) {
- $this->partialStub('Unfinished method. templateInstance=' . $templateInstance->__toString());
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished method. templateInstance=' . $templateInstance->__toString());
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Action\BaseAction;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
/**
* An action for ???
* @todo 0% done
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- $this->partialStub("You have to implement me.");
+ DebugMiddleware::getSelfInstance()->partialStub("You have to implement me.");
}
}
* @return void
*/
public final function setDebugInstance (DebugMiddleware $debugInstance) {
- GenericRegistry::getRegistry()->addInstance('debug', $debugInstance);
+ self::$debugInstance = $debugInstance;
}
/**
));
}
- /**
- * Output a partial stub message for the caller method
- *
- * @param $message An optional message to display
- * @return void
- */
- protected function partialStub (string $message = '') {
- // Init variable
- $stubMessage = 'Partial stub!';
-
- // Is an extra message given?
- if (!empty($message)) {
- // Then add it as well
- $stubMessage .= ' Message: ' . $message;
- }
-
- // Debug instance is there?
- if (!is_null($this->getDebugInstance())) {
- // Output stub message
- self::createDebugInstance(__CLASS__, __LINE__)->warningMessage($stubMessage);
- } else {
- // Trigger an error
- trigger_error($stubMessage);
- exit(255);
- }
- }
-
/**
* Outputs a debug backtrace and stops further script execution
*
}
} else {
// @TODO Finish this part!
- $this->partialStub('Developer mode inactive. Message:' . $message);
+ DebugMiddleware::getSelfInstance()->partialStub('Developer mode inactive. Message:' . $message);
}
}
<?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
/**
*
*
* @return void
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- $this->partialStub('Unfinished!');
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished!');
}
/**
* @return void
*/
public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
- $this->partialStub('Unfinished!');
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished!');
}
}
<?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
/**
* A ??? console command
*
* @return void
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- $this->partialStub('Unfinished!');
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished!');
}
/**
* @return void
*/
public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
- $this->partialStub('Unfinished!');
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished!');
}
}
use Org\Mxchange\CoreFramework\Command\Commandable;
use Org\Mxchange\CoreFramework\Controller\Controller;
use Org\Mxchange\CoreFramework\Feature\FrameworkFeature;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
use Org\Mxchange\CoreFramework\Response\Responseable;
}
// @TODO Unfinished
- $this->partialStub('Still unfinished! ;-)');
+ DebugMiddleware::getSelfInstance()->partialStub('Still unfinished! ;-)');
}
/**
<?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
/**
* A command for ??? page
*
* @todo 0% done
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- $this->partialStub('Unfinished method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished method.');
}
/**
use Org\Mxchange\CoreFramework\Command\BaseCommand;
use Org\Mxchange\CoreFramework\Command\Commandable;
use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
* @todo 0% done
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- $this->partialStub('Unfinished method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished method.');
}
/**
// Import framework stuff
use Org\Mxchange\CoreFramework\Helper\Template\HelpableTemplate;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
/**
* A ??? discovery class.
* @todo 0% done
*/
public function discover (Requestable $requestInstance) {
- $this->partialStub("Please implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
}
/**
* @todo 0% done
*/
public function addResultsToHelper (HelpableTemplate $helperInstance) {
- $this->partialStub("Please implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Feature\BaseFeature;
use Org\Mxchange\CoreFramework\Feature\Feature;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
/**
* A ??? feature class
$isAvailable = false;
// Unfinished:
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
// Return status
return $isAvailable;
// Import framework stuff
use Org\Mxchange\CoreFramework\Feature\BaseFeature;
use Org\Mxchange\CoreFramework\Feature\Feature;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
/**
* A FUSE feature class
$isAvailable = false;
// Unfinished:
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
// Return status
return $isAvailable;
use Org\Mxchange\CoreFramework\Filesystem\File\BaseAbstractFile;
use Org\Mxchange\CoreFramework\Filesystem\FilePointer;
use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Traits\Index\IndexableTrait;
use Org\Mxchange\CoreFramework\Traits\Stack\StackableTrait;
}
// @TODO Unfinished
- $this->partialStub('length=' . $length);
+ DebugMiddleware::getSelfInstance()->partialStub('length=' . $length);
}
}
use Org\Mxchange\CoreFramework\Filesystem\FileNotFoundException;
use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
use Org\Mxchange\CoreFramework\Stream\Filesystem\FileInputStreamer;
use Org\Mxchange\CoreFramework\Stream\Filesystem\FileOutputStreamer;
* @todo 0% done
*/
public function determineSeekPosition () {
- $this->partialStub();
+ DebugMiddleware::getSelfInstance()->partialStub();
}
/**
* @return $status Status of file seek: 0 = success, -1 = failed
*/
public function seek (int $offset, int $whence = SEEK_SET) {
- $this->partialStub('offset=' . $offset . ',whence=' . $whence);
+ DebugMiddleware::getSelfInstance()->partialStub('offset=' . $offset . ',whence=' . $whence);
}
/**
* @return $size Size (in bytes) of file
*/
public function size () {
- $this->partialStub();
+ DebugMiddleware::getSelfInstance()->partialStub();
}
}
use Org\Mxchange\CoreFramework\Filter\BaseFilter;
use Org\Mxchange\CoreFramework\Filter\Chain\FilterChainException;
use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Response\Responseable;
}
// Update the "new_email" field
- $this->partialStub('Unfinished part.');
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished part.');
}
}
use Org\Mxchange\CoreFramework\Filter\BaseFilter;
use Org\Mxchange\CoreFramework\Filter\Chain\FilterChainException;
use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Response\Responseable;
$userInstance = GenericRegistry::getRegistry()->getInstance('user');
// Update the "password" field
- $this->partialStub('Unfinished part.');
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished part.');
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Filter\BaseFilter;
use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Response\Responseable;
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Implement this!
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
}
use Org\Mxchange\CoreFramework\Filter\BaseFilter;
use Org\Mxchange\CoreFramework\Filter\Chain\FilterChainException;
use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Response\Responseable;
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Implement this!
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
/**
* A solveable CAPTCHA
* @todo 0% done
*/
public function initiateCaptcha () {
- $this->partialStub("Please implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
}
/**
* @todo 0% done
*/
public function renderCode () {
- $this->partialStub("Please implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Helper\Template\HelpableTemplate;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
/**
*
* @todo 0% done
*/
public function flushContent () {
- $this->partialStub("Please implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
// Import SPL stuff
* @todo Rewrite this to SplFileInfo/Object
*/
public function finishImage () {
- $this->partialStub('Unfinished method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Unfinished method.');
return;
// Call parent method
// Import framework stuff
use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
// Import SPL stuff
use \Iterator;
// Default is null
$current = null;
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
// Return it
return $current;
// Default is null
$key = null;
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
// Return it
return $key;
* @return void
*/
public function next () {
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
/**
* @return void
*/
public function rewind () {
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
/**
* @return void
*/
public function valid () {
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
}
<?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
/**
* A ??? list
*
* @todo 0% done
*/
public function getListIterator () {
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
/**
* @todo 0% done
*/
public function clearList () {
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Lists\BaseList;
use Org\Mxchange\CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
/**
* A ListGroup list
* @todo 0% done
*/
public function clearList () {
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
}
// Import framwork stuff
use Org\Mxchange\CoreFramework\Mailer\BaseMailer;
use Org\Mxchange\CoreFramework\Mailer\DeliverableMail;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
/**
* A ??? mailer class
* @todo 0% done
*/
public function deliverEmail() {
- $this->partialStub("You have to implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("You have to implement this method.");
}
/**
* @todo 0% done
*/
public function sendAdminNotification() {
- $this->partialStub("You have to implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("You have to implement this method.");
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
/**
* A ??? output class
* @todo 0% done
*/
public final function output ($outStream = false, $stripTags = false) {
- $this->partialStub('Please implement this method. outStream()=' . strlen($outStream) . ',stripTags=' . intval($stripTags));
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method. outStream()=' . strlen($outStream) . ',stripTags=' . intval($stripTags));
}
/**
// Import framework stuff
use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Parser\BaseParser;
use Org\Mxchange\CoreFramework\Parser\Parseable;
use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
$content = mb_convert_encoding($content, 'UTF-8', 'auto');
} else {
// @TODO We need to find a fallback solution here
- $this->partialStub('Cannot find recode/mbstring extension!');
+ DebugMiddleware::getSelfInstance()->partialStub('Cannot find recode/mbstring extension!');
}
// Get an XML parser
namespace Org\Mxchange\CoreFramework\Registry\Upgrade\Format\Lfdb;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Registry\BaseRegistry;
use Org\Mxchange\CoreFramework\Upgrade\Format\Database\UpgradeableDatabaseFormat;
use Org\Mxchange\CoreFramework\Upgrade\Format\RegisterableFormatUpgrade;
* @todo 0% done
*/
public function registerFormatUpgrader (UpgradeableDatabaseFormat $upgradeInstance) {
- $this->partialStub();
+ DebugMiddleware::getSelfInstance()->partialStub();
}
}
// Own namespace
namespace Org\Mxchange\CoreFramework\Request;
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
/**
* A concrete request class
*
* @todo Needs to be implemented
*/
protected function prepareRequestData () {
- $this->partialStub("Please implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
}
/**
* @return $headerValue Value of the header or 'null' if not found
*/
public function getHeaderElement ($headerName) {
- $this->partialStub("Please implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
}
/**
* @return $requestMethod Used request method
*/
public final function getRequestMethod () {
- $this->partialStub("Please implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
return $_SERVER['REQUEST_METHOD'];
}
* @return $cookieValue Value of cookie or null if not found
*/
public final function readCookie ($cookieName) {
- $this->partialStub("Please implement this method.");
+ DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Response\Responseable;
/**
*/
public function addCookie (string $cookieName, $cookieValue, bool $encrypted = FALSE, int $expires = NULL) {
//* DEBUG: */ echo $cookieName.'='.$cookieValue."<br />\n";
- $this->partialStub('Naturally unimplemented in console response.');
+ DebugMiddleware::getSelfInstance()->partialStub('Naturally unimplemented in console response.');
}
/**
* @throws ResponseHeadersAlreadySentException If headers are already sent
*/
public function redirectToConfiguredUrl ($configEntry) {
- $this->partialStub('Naturally unimplemented in console response.');
+ DebugMiddleware::getSelfInstance()->partialStub('Naturally unimplemented in console response.');
}
/**
* @return void
*/
public function expireCookie ($cookieName) {
- $this->partialStub('Naturally unimplemented in console response.');
+ DebugMiddleware::getSelfInstance()->partialStub('Naturally unimplemented in console response.');
}
/**
* @return void
*/
public function refreshCookie ($cookieName) {
- $this->partialStub('Naturally unimplemented in console response.');
+ DebugMiddleware::getSelfInstance()->partialStub('Naturally unimplemented in console response.');
}
/**
* @throws ResponseHeadersAlreadySentException Thrown if headers are already sent
*/
public function flushBuffer ($force = false) {
- $this->partialStub('Please implement this class.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this class.');
}
}
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Response\Responseable;
// Shall we encrypt the cookie?
if ($encrypted) {
// Unsupported at the moment
- $this->partialStub('Encryption is unsupported at the moment.');
+ DebugMiddleware::getSelfInstance()->partialStub('Encryption is unsupported at the moment.');
}
// For slow browsers set the cookie array element first
use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
use Org\Mxchange\CoreFramework\Image\BaseImage;
use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Response\Responseable;
// Shall we encrypt the cookie?
if ($encrypted) {
// Unsupported at the moment
- $this->partialStub('Encryption is unsupported at the moment.');
+ DebugMiddleware::getSelfInstance()->partialStub('Encryption is unsupported at the moment.');
}
// For slow browsers set the cookie array element first
namespace Org\Mxchange\CoreFramework\Stack\!!!;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Stack\BaseStacker;
use Org\Mxchange\CoreFramework\Stack\Stackable;
* @throws StackerFullException If the stack is full
*/
public function pushNamed ($stackerName, $value) {
- $this->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value);
+ DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value);
}
/**
* @throws EmptyStackerException If the named stacker is empty
*/
public function popNamed ($stackerName) {
- $this->partialStub('stackerName=' . $stackerName);
+ DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
}
/**
* @throws EmptyStackerException If the named stacker is empty
*/
public function getNamed ($stackerName) {
- $this->partialStub('stackerName=' . $stackerName);
+ DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
}
}
<?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
/**
* A ??? file-based stack
*
* @throws StackerFullException If the stack is full
*/
public function pushNamed ($stackerName, $value) {
- $this->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value);
+ DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value);
}
/**
* @throws EmptyStackerException If the named stacker is empty
*/
public function popNamed ($stackerName) {
- $this->partialStub('stackerName=' . $stackerName);
+ DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
}
/**
* @throws EmptyStackerException If the named stacker is empty
*/
public function getNamed ($stackerName) {
- $this->partialStub('stackerName=' . $stackerName);
+ DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
}
/**
* @return void
*/
public function seek ($seekPosition) {
- $this->partialStub('seekPosition=' . $seekPosition);
+ DebugMiddleware::getSelfInstance()->partialStub('seekPosition=' . $seekPosition);
}
/**
* @return $size Size (in bytes) of file
*/
public function size () {
- $this->partialStub();
+ DebugMiddleware::getSelfInstance()->partialStub();
}
}
use Org\Mxchange\CoreFramework\Filesystem\File\BinaryFile;
use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Stack\BaseStacker;
use Org\Mxchange\CoreFramework\Traits\Index\IndexableTrait;
use Org\Mxchange\CoreFramework\Traits\Iterator\IteratorTrait;
}
// Now get the last value
- /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+ /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
$value = NULL;
// Return it
}
// Now get the first value
- /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+ /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
$value = NULL;
// Return it
}
// Now, remove the last entry, we don't care about the return value here, see elseif() block above
- /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+ /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
return NULL;
}
}
// Now, remove the last entry, we don't care about the return value here, see elseif() block above
- /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+ /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
return NULL;
}
}
// @TODO Please implement this, returning false
- /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+ /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
$isFull = false;
// Return result
// Import framework stuff
use Org\Mxchange\CoreFramework\Filesystem\Block\CalculatableBlock;
use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Registry\Registerable;
use Org\Mxchange\CoreFramework\Stack\File\BaseFileStack;
use Org\Mxchange\CoreFramework\Stack\File\StackableFile;
}
// @TODO Unfinished method or invoke inner iterator's method?
- $this->partialStub('seekPosition=' . $seekPosition);
+ DebugMiddleware::getSelfInstance()->partialStub('seekPosition=' . $seekPosition);
// Trace message
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('FIFO-FILE-STACK: EXIT!');
namespace Tld\Domain\Project\Task\___;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Task\BaseTask;
use Org\Mxchange\CoreFramework\Task\Taskable;
use Org\Mxchange\CoreFramework\Visitor\Visitable;
* @todo 0%
*/
public function executeTask () {
- $this->partialStub('Unimplemented task.');
+ DebugMiddleware::getSelfInstance()->partialStub('Unimplemented task.');
}
/**
use Org\Mxchange\CoreFramework\Filesystem\InvalidDirectoryException;
use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
use Org\Mxchange\CoreFramework\Image\BaseImage;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Parser\Parseable;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Response\Responseable;
}
// Unfinished work!
- $this->partialStub('Handling extra characters is not yet supported!');
+ DebugMiddleware::getSelfInstance()->partialStub('Handling extra characters is not yet supported!');
}
/**
//* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__);
}
+ /**
+ * Output a partial stub message for the caller method
+ *
+ * @param $message An optional message to display
+ * @return void
+ */
+ public function partialStub (string $message = '') {
+ // Init variable
+ //* NOISY-DEBUG: */ printf('[%s:%d]: message=%s - CALLED!' . PHP_EOL, __METHOD__, __LINE__, $message);
+ $stubMessage = 'Partial stub!';
+
+ // Is an extra message given?
+ if (!empty($message)) {
+ // Then add it as well
+ $stubMessage .= ' Message: ' . $message;
+ }
+
+ // Output stub message
+ $this->output($stubMessage);
+
+ // Trace message
+ //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__);
+ }
+
/**
* Outputs a debug message whether to debug instance (should be set!) or
* dies with or ptints the message. Do NEVER EVER rewrite the exit() call to
use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
use Org\Mxchange\CoreFramework\Handler\Stream\IoHandler;
use Org\Mxchange\CoreFramework\Middleware\BaseMiddleware;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Traits\Streamer\File\Input\FileInputStreamerTrait;
use Org\Mxchange\CoreFramework\Traits\Streamer\File\Output\FileOutputStreamerTrait;
public function determineSeekPosition () {
// Trace message
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: CALLED!');
- $this->partialStub();
+ DebugMiddleware::getSelfInstance()->partialStub();
// Trace message
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: EXIT!');
}
// @TODO Unfinished work
- $this->partialStub('offset=' . $offset . ',whence=' . $whence);
+ DebugMiddleware::getSelfInstance()->partialStub('offset=' . $offset . ',whence=' . $whence);
// Trace message
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: EXIT!');
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: CALLED!');
// @TODO: Unfinished method:
- $this->partialStub();
+ DebugMiddleware::getSelfInstance()->partialStub();
// Trace message
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: EXIT!');
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: CALLED!');
// @TODO: Unfinished method:
- $this->partialStub();
+ DebugMiddleware::getSelfInstance()->partialStub();
// Trace message
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: EXIT!');
// Import framework stuff
use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Response\Responseable;
use Org\Mxchange\CoreFramework\Tests\Filter\BaseTestsFilter;
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Implement this!
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Response\Responseable;
use Org\Mxchange\CoreFramework\Tests\Filter\BaseTestsFilter;
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Implement this!
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
}
// Import framework stuff
use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Response\Responseable;
use Org\Mxchange\CoreFramework\Tests\Filter\BaseTestsFilter;
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Implement this!
- $this->partialStub('Please implement this method.');
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
}