Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

type_cast_helper_interface.php

Zuletzt modifiziert: 09.10.2024, 12:51 - Dateigröße: 2.02 KiB


01  <?php
02  /**
03  *
04  * This file is part of the phpBB Forum Software package.
05  *
06  * @copyright (c) phpBB Limited <https://www.phpbb.com>
07  * @license GNU General Public License, version 2 (GPL-2.0)
08  *
09  * For full copyright and license information, please see
10  * the docs/CREDITS.txt file.
11  *
12  */
13   
14  namespace phpbb\request;
15   
16  /**
17  * An interface for type cast operations.
18  */
19  interface type_cast_helper_interface
20  {
21      /**
22      * Recursively applies addslashes to a variable.
23      *
24      * @param    mixed    &$var    Variable passed by reference to which slashes will be added.
25      */
26      public function addslashes_recursively(&$var);
27   
28      /**
29      * Recursively applies addslashes to a variable if magic quotes are turned on.
30      *
31      * @param    mixed    &$var    Variable passed by reference to which slashes will be added.
32      */
33      public function add_magic_quotes(&$var);
34   
35      /**
36      * Set variable $result to a particular type.
37      *
38      * @param mixed    &$result    The variable to fill
39      * @param mixed    $var        The contents to fill with
40      * @param mixed    $type        The variable type. Will be used with {@link settype()}
41      * @param bool    $multibyte    Indicates whether string values may contain UTF-8 characters.
42      *                             Default is false, causing all bytes outside the ASCII range (0-127) to be replaced with question marks.
43      */
44      public function set_var(&$result, $var, $type, $multibyte = false);
45   
46      /**
47      * Recursively sets a variable to a given type using {@link set_var set_var}.
48      *
49      * @param    string    $var        The value which shall be sanitised (passed by reference).
50      * @param    mixed    $default    Specifies the type $var shall have.
51      *                                 If it is an array and $var is not one, then an empty array is returned.
52      *                                 Otherwise var is cast to the same type, and if $default is an array all
53      *                                 keys and values are cast recursively using this function too.
54      * @param    bool    $multibyte    Indicates whether string keys and values may contain UTF-8 characters.
55      *                                 Default is false, causing all bytes outside the ASCII range (0-127) to
56      *                                 be replaced with question marks.
57      */
58      public function recursive_set_var(&$var, $default, $multibyte);
59  }
60