} // END - if
// Load it
- require $fileInstance->getPathname();
+ require_once $fileInstance->getPathname();
// Trace message
//* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__);
// Now call all methods in one go
foreach (array('setupApplicationData', 'initApplication', 'launchApplication') as $methodName) {
// Debug message
- //* NOISY-DEBUG: */ printf('[%s:%d]: Calling methodName=%s ...' . PHP_EOL, __METHOD__, __LINE__, $methodName);
+ //*NOISY-DEBUG: */ printf('[%s:%d]: Calling methodName=%s ...' . PHP_EOL, __METHOD__, __LINE__, $methodName);
// Call method
call_user_func(array($applicationInstance, $methodName));
} // END - while
}
+ /**
+ * Getter for total include counter
+ *
+ * @return $total Total loaded include files
+ */
+ public final function getTotal () {
+ return $this->total;
+ }
+
+ /**
+ * Getter for a printable list of included main/interfaces/exceptions
+ *
+ * @param $includeList A printable include list
+ */
+ public function getPrintableIncludeList () {
+ // Prepare the list
+ $includeList = '';
+ foreach ($this->loadedClasses as $classFile) {
+ $includeList .= basename($classFile) . '<br />' . PHP_EOL;
+ } // END - foreach
+
+ // And return it
+ return $includeList;
+ }
+
/**
* Initializes our loader class
*
}
}
- /**
- * Getter for total include counter
- *
- * @return $total Total loaded include files
- */
- public final function getTotal () {
- return $this->total;
- }
-
- /**
- * Getter for a printable list of included main/interfaces/exceptions
- *
- * @param $includeList A printable include list
- */
- public function getPrintableIncludeList () {
- // Prepare the list
- $includeList = '';
- foreach ($this->loadedClasses as $classFile) {
- $includeList .= basename($classFile) . '<br />' . PHP_EOL;
- } // END - foreach
-
- // And return it
- return $includeList;
- }
-
}
*/
public final static function createDebugInstance ($className, $lineNumber = NULL) {
// Is the instance set?
- if (!Registry::getRegistry()->instanceExists('debug')) {
+ if (!GenericRegistry::getRegistry()->instanceExists('debug')) {
// Init debug instance
$debugInstance = NULL;
<?php
+// Own namespace
+namespace Org\Mxchange\CoreFramework\Client\Http;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Client\BaseClient;
+use Org\Mxchange\CoreFramework\Client\Client;
+
/**
* A HTTP client class
*
<?php
+// Own namespace
+namespace Org\Mxchange\CoreFramework\Migration\Database;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+
/**
* A general database migration class
*
<?php
+// Own namespace
+namespace Org\Mxchange\CoreFramework\Upgrade\Format;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Migration\Database\BaseDatabaseMigration;
+use Org\Mxchange\CoreFramework\Migration\Database\MigrateableDatabase;
+
/**
* A general format upgrade class
*
<?php
+// Own namespace
+namespace Org\Mxchange\CoreFramework\Upgrade\Format\Database\Lfdb;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Upgrade\Format\BaseFormatUpgrade;
+use Org\Mxchange\CoreFramework\Upgrade\Format\Database\UpgradeableDatabaseFormat;
+
/**
* A format-upgrade class for LocalFileDatabase format version 01 to 02
*
// Own namespace
namespace Org\Mxchange\CoreFramework\Factory\Client;
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+
/**
* An object factory for clients
*
<?php
// Own namespace
namespace Org\Mxchange\CoreFramework\Registry\Upgrade\Format\Lfdb;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Registry\BaseRegistry;
+use Org\Mxchange\CoreFramework\Upgrade\Format\Database\UpgradeableDatabaseFormat;
+use Org\Mxchange\CoreFramework\Upgrade\Format\RegisterableFormatUpgrade;
+
/**
* A LocalFileDatabase database-format-upgrade registry
*
// Return the instance
return self::$registryInstance;
}
-}
-// [EOF]
-?>
+ /**
+ * Registers given format-upgrade class with this registry
+ *
+ * @param $upgradeInstance An instance of a UpgradeableDatabaseFormat class
+ * @return void
+ * @todo 0% done
+ */
+ public function registerFormatUpgrader (UpgradeableDatabaseFormat $upgradeInstance) {
+ $this->partialStub();
+ }
+
+}
$resolverConfigEntry,
array(
$controllerName,
- Registry::getRegistry()->getInstance('application')
+ GenericRegistry::getRegistry()->getInstance('application')
)
);
$controllerInstance = ObjectFactory::createObjectByName(
namespace Org\Mxchange\CoreFramework\Helper\Captcha;
// Import framework stuff
-use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
use Org\Mxchange\CoreFramework\Helper\Helper;
/**
<?php
+// Own namespace
+namespace Org\Mxchange\CoreFramework\Migration\Database;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Database\FrameworkDatabase;
+
/**
* A database migration interface
*
<?php
+// Own namespace
+namespace Org\Mxchange\CoreFramework\Upgrade\Format\Database;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Migration\Database\MigrateableDatabase;
+
/**
* An interface for database format upgrade classes
*
// Own namespace
namespace Org\Mxchange\CoreFramework\Upgrade\Format;
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Upgrade\Format\Database\UpgradeableDatabaseFormat;
+
/**
* An interface for format-upgrade registries
*
$this->partialStub();
}
- /**
- * Seek to given offset (default) or other possibilities as fseek() gives.
- *
- * @param $offset Offset to seek to (or used as "base" for other seeks)
- * @param $whence Added to offset (default: only use offset to seek to)
- * @return $status Status of file seek: 0 = success, -1 = failed
- */
- public function seek ($offset, $whence = SEEK_SET) {
- $this->partialStub('offset=' . $offset . ',whence=' . $whence);
- }
-
- /**
- * Size of file stack
- *
- * @return $size Size (in bytes) of file
- */
- public function size () {
- $this->partialStub();
- }
-
}