"Fossies" - the Fresh Open Source Software Archive

Member "papayacms-core-6.12.5/src/system/Papaya/Plugin/Addressable.php" (7 Jul 2020, 1073 Bytes) of package /linux/www/papayacms-core-6.12.5.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 "Addressable.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\Plugin;
   16 
   17 use Papaya\Request;
   18 
   19 /**
   20  * An interface to define that an object is editable.
   21  *
   22  * Allow to validate if the current url is a valid address for the content/plugin
   23  *
   24  * @package Papaya-Library
   25  * @subpackage Plugins
   26  */
   27 interface Addressable {
   28   /**
   29    * Getter/Setter for the content.
   30    *
   31    * @param Request $request
   32    *
   33    * @return bool|string
   34    */
   35   public function validateURL(Request $request);
   36 }