Continued with renaming-season:
[core.git] / inc / main / interfaces / request / class_Requestable.php
diff --git a/inc/main/interfaces/request/class_Requestable.php b/inc/main/interfaces/request/class_Requestable.php
deleted file mode 100644 (file)
index 24b295a..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-// Own namespace
-namespace CoreFramework\Request;
-
-// Import framework stuff
-use CoreFramework\Generic\FrameworkInterface;
-
-/**
- * An interface for requests
- *
- * @author             Roland Haeder <webmaster@shipsimu.org>
- * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
- * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.shipsimu.org
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-interface Requestable extends FrameworkInterface {
-       /**
-        * Prepares the request data for usage
-        *
-        * @return      void
-        */
-       function prepareRequestData ();
-
-       /**
-        * Checks whether a request element is set
-        *
-        * @param       $element        Name of the request element we want to check
-        * @return      $isSet          Whether the request element is set
-        * @throws      MissingArrayElementsException   Thrown if a request element is not set
-        */
-       function isRequestElementSet ($element);
-
-       /**
-        * Getter for request element or 'null' if element was not found
-        *
-        * @param       $element        Name of the request element we want to check
-        * @return      $value          Value of the found request element or 'null' if the
-        *                                              element was not found
-        */
-       function getRequestElement ($element);
-
-       /**
-        * Wrapper method for array_key() function for the request data array
-        *
-        * @return      $array  An array containing all array keys to return
-        */
-       function getParameterNames ();
-
-       /**
-        * Getter for a header element or 'null' if header was not found
-        *
-        * @param       $headerName             Name of the header
-        * @return      $headerValue    Value of the header or 'null' if not found
-        */
-       function getHeaderElement ($headerName);
-
-       /**
-        * Sets whether the request was valid (default: TRUE)
-        *
-        * @param       $isValid        Whether the request is valid
-        * @return      void
-        */
-       function requestIsValid ($isValid = TRUE);
-
-       /**
-        * Reads a cookie and returns it's value or null if not found
-        *
-        * @param       $cookieName             Name of cookie we shall read
-        * @return      $cookieValue    Value of cookie or null if not found
-        */
-       function readCookie ($cookieName);
-
-       /**
-        * Checks if the request method is GET.
-        *
-        * @return      $isGet  Whether the request method is GET
-        */
-       function isGetRequestMethod ();
-
-       /**
-        * Checks if the request method is HEAD.
-        *
-        * @return      $isHead         Whether the request method is HEAD
-        */
-       function isHeadRequestMethod ();
-
-       /**
-        * Checks if the request method is POST.
-        *
-        * @return      $isPost         Whether the request method is POST
-        */
-       function isPostRequestMethod ();
-
-}