$responseType = self::getResponseTypeFromSystem();
// Create a new request object
- $requestInstance = ObjectFactory::createObjectByName(sprintf('\CoreFramework\Request\%sRequest', self::convertToClassName($response)));
+ $requestInstance = ObjectFactory::createObjectByName(sprintf('CoreFramework\Request\%sRequest', self::convertToClassName($response)));
// Remember request instance here
$this->setRequestInstance($requestInstance);
} // END - if
// ... and a new response object
- $responseClass = sprintf('\CoreFramework\Response\%sResponse', self::convertToClassName($response));
+ $responseClass = sprintf('CoreFramework\Response\%sResponse', self::convertToClassName($response));
$responseInstance = ObjectFactory::createObjectByName($responseClass, array($this));
// Remember response instance here
$cfg->setConfigEntry('compile_output_path', 'templates/_compiled/');
// CFG: HTML-TEMPLATE-CLASS
-$cfg->setConfigEntry('html_template_class', 'HtmlTemplateEngine');
+$cfg->setConfigEntry('html_template_class', 'CoreFramework\Template\Engine\HtmlTemplateEngine');
// CFG: DECO-XML-REWRITER-TEMPLATE-CLASS
$cfg->setConfigEntry('deco_xml_rewriter_template_class', 'XmlRewriterTemplateDecorator');
$cfg->setConfigEntry('update_criteria_class', 'UpdateCriteria');
// CFG: FILE-IO-CLASS
-$cfg->setConfigEntry('file_io_class', 'FileIoHandler');
+$cfg->setConfigEntry('file_io_class', 'CoreFramework\Handler\Filesystem\FileIoHandler');
// CFG: DATABASE-RESULT-CLASS
$cfg->setConfigEntry('database_result_class', 'CachedDatabaseResult');
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Registerable;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* An action for the profile page in login area
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A post registration action to login after the registration is done
// Import framework stuff
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Response\Responseable;
/**
* A cookie-bases authorization class
use CoreFramework\Registry\Register;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
use CoreFramework\Stream\Output\OutputStreamer;
use CoreFramework\Template\CompileableTemplate;
private $requestInstance = NULL;
/**
- * Instance of a Responsable class
+ * Instance of a Responseable class
*/
private $responseInstance = NULL;
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A general (base) command
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A Fuse console command
use CoreFramework\Generic\NullPointerException;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for the confirmation link handling
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for the form processor
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for the home page
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for the login area (member/gamer area)
use CoreFramework\Registry\Registerable;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for the login form
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for the login failed page
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for logout
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for the login failed page
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for Problem page
use CoreFramework\Registry\Registerable;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command class for the registration form
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command class for resending the confirmation link
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for Status page
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A command for creating code CAPTCHAs
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Registry\Registerable;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A generic controller class. You should extend this base class if you want to
* UserAuthorizationException is thrown.
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function genericHanleRequestLoginFailedRedirect (Requestable $requestInstance, Responseable $responseInstance) {
* but request becomes valid after pre-filters run.
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function genericHanleRequestLoginAreaFailedRedirect (Requestable $requestInstance, Responseable $responseInstance) {
*
* @param $filterChain Chain of the filter to execute
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
* @throws InvalidFilterChainException If the filter chain is invalid
*/
* Executes all pre filters
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
protected function executePreFilters (Requestable $requestInstance, Responseable $responseInstance) {
* Executes all post filters
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
protected function executePostFilters (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* The default controller for all other console requests
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* The default controller with news for e.g. home or news page
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Response\Responseable;
/**
* Controller for confirmation link
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* The default controller for all other web requests
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Response\Responseable;
/**
* The default controller with news for e.g. home or news page
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* Controller for login form with password reminder and maybe enabled
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A controller for login failed page
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* The default controller for logout page
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* Controller for problem requests
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
<?php
+// Own namespace
+namespace CoreFramework\Controller\Register;
+
+// Import framework stuff
+use CoreFramework\Response\Responseable;
+
/**
* Controller for register form
*
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* Controller for changing user status
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A controller for handling sent forms
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* Controller for login area with news
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A controller for a code-based CAPTCHA where the user has to repeat a shown code
* Handles the given request and response
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A default controller for images
// Import framework stuff
use CoreFramework\Manager\ManageableApplication;
+use CoreFramework\Response\Responseable;
use CoreFramework\Template\CompileableTemplate;
/**
/**
* Transfers the content of this template engine to a given response instance
*
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function transferToResponse (Responseable $responseInstance) {
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for checking user permissions
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for detecting email changes
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for password change detection
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for checking if the user has accepted the rules. This is mainly
// Import framework stuff
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A general filter decorator for decorating filters with other filters
* Execute the inner filter
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public final function execute (Requestable $requestInstance, Responseable $responseInstance) {
* Do the execution of the filter
*
* @param $requestInstance An instance of a Requestable class
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
abstract public function doExecute (Requestable $requestInstance, Responseable $responseInstance);
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Registry\Registerable;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter chain for pre and post filters
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for checking if value "encrypt" is set and fine
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for checking if username "guest" has been choosen as configured. If
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A pre-filter for downloading news from a source. This can be a XML feed or
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A post-filter for processing downloaded news. This will prepare the news fir
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* As the name said: A null filter does just pass through the data. This is
use CoreFramework\Generic\NullPointerException;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for payment discovery. This class discovers the payment type and
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for updating the user account status to confirmed
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for updating the user account like last activity, last action
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A concrete filter for validating the email address. This filter may intercept
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A concrete filter for validating the password. This filter may intercept
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A concrete filter for validating the username. This filter may intercept the
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A concrete filter for validating the password. This filter may intercept
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A verifier filter for birthday data
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for checking if supplied confirmation code is valid.
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A concrete filter for validating code graphical CAPTCHAs with hashes
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A concrete filter for validating the guest password. This filter may intercept
// Import framework stuff
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A concrete filter for validating the password. This filter may intercept
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A concrete filter for verfying the guest username. This filter may intercept the
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A concrete filter for verfying the username. This filter may intercept the
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for checking if user status is GUEST or CONFIRMED.
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A filter for checking if user status is UNCONFIRMED.
// Import framework stuff
use CoreFramework\Manager\ManageableApplication;
+use CoreFramework\Response\Responseable;
/**
* A class for a console response aka output to console
// Import framework stuff
use CoreFramework\Manager\ManageableApplication;
+use CoreFramework\Response\Responseable;
/**
* A class for an HTML response on an HTML request
// Import framework stuff
use CoreFramework\Manager\ManageableApplication;
+use CoreFramework\Response\Responseable;
/**
* A class for an image response on an HTTP request
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Manager\ManageableApplication;
use CoreFramework\Object\BaseFrameworkSystem;
+use CoreFramework\Response\Responseable;
/**
* A generic template engine
/**
* Transfers the content of this template engine to a given response instance
*
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
public function transferToResponse (Responseable $responseInstance) {
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Response\Responseable;
use CoreFramework\Template\CompileableTemplate;
/**
// Import framework stuff
use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Response\Responseable;
use CoreFramework\Template\CompileableTemplate;
/**
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* An interface for performable actions
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* An interface for controller
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* A class for pre and post filters
// Own namespace
namespace CoreFramework\Helper\Login;
+// Import framework stuff
+use CoreFramework\Response\Responseable;
+
/**
* A helper interface for logins
*
// Own namespace
namespace CoreFramework\Filesystem\Stream;
+// Import framework stuff
+use CoreFramework\Stream\Input\StreamableInput;
+
/**
* An interface for file input operations.
*
// Own namespace
namespace CoreFramework\Filesystem\Pointer;
+// Import framework stuff
+use CoreFramework\Stream\Input\StreamableInput;
+
/**
* An interface for (mostly) file input pointers.
*
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
use CoreFramework\Request\Requestable;
+use CoreFramework\Response\Responseable;
/**
* An interface for user login classes
// Import framework stuff
use CoreFramework\Generic\FrameworkInterface;
use CoreFramework\Manager\ManageableApplication;
+use CoreFramework\Response\Responseable;
/**
* An interface for template engines
/**
* Transfers the content of this template engine to a given response instance
*
- * @param $responseInstance An instance of a Responsable class
+ * @param $responseInstance An instance of a Responseable class
* @return void
*/
function transferToResponse (Responseable $responseInstance);