"Fossies" - the Fresh Open Source Software Archive

Member "papayacms-core-6.9.4/src/system/Papaya/Request/Parameters/Access.php" (13 Dec 2019, 2198 Bytes) of package /linux/www/papayacms-core-6.9.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Access.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 /**
    3  * papaya CMS
    4  *
    5  * @copyright 2000-2018 by papayaCMS project - All rights reserved.
    6  * @link http://www.papaya-cms.com/
    7  * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, version 2
    8  *
    9  *  You can redistribute and/or modify this script under the terms of the GNU General Public
   10  *  License (GPL) version 2, provided that the copyright and license notes, including these
   11  *  lines, remain unmodified. papaya is distributed in the hope that it will be useful, but
   12  *  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   13  *  FOR A PARTICULAR PURPOSE.
   14  */
   15 namespace Papaya\Request\Parameters;
   16 
   17 use Papaya\Application;
   18 
   19 /**
   20  * Provide access to request parameters.
   21  *
   22  * @package Papaya\Request\Parameters
   23  */
   24 interface Access extends Application\Access {
   25   /**
   26    * Parameter method post (read request body parameters)
   27    *
   28    * @var int
   29    */
   30   const METHOD_POST = 0;
   31 
   32   /**
   33    * Parameter method get (read query string parameters)
   34    *
   35    * @var int
   36    */
   37   const METHOD_GET = 1;
   38 
   39   /**
   40    * Parameter method post (read query string and request body)
   41    *
   42    * @var int
   43    */
   44   const METHOD_MIXED = 2;
   45 
   46   /**
   47    * Parameter method get (read request body and query string)
   48    *
   49    * @var int
   50    */
   51   const METHOD_MIXED_GET = 3;
   52 
   53   /**
   54    * Parameter method post (read query string and request body)
   55    *
   56    * @var int
   57    */
   58   const METHOD_MIXED_POST = 2;
   59 
   60   /**
   61    * Get/Set parameter handling method. This will be used to define the parameter sources.
   62    *
   63    * @param int $method
   64    *
   65    * @return int
   66    */
   67   public function parameterMethod($method = NULL);
   68 
   69   /**
   70    * Get/Set the parameter group name.
   71    *
   72    * This puts all field parameters (except the hidden fields) into a parameter group.
   73    *
   74    * @param string|null $groupName
   75    *
   76    * @return string|null
   77    */
   78   public function parameterGroup($groupName = NULL);
   79 
   80   /**
   81    * Access request parameters
   82    *
   83    * This method gives you access to request parameters.
   84    *
   85    * @param \Papaya\Request\Parameters $parameters
   86    *
   87    * @return \Papaya\Request\Parameters
   88    */
   89   public function parameters(\Papaya\Request\Parameters $parameters = NULL);
   90 }