[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/phpbb/request/ -> type_cast_helper.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 190 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

type_cast_helper:: (5 methods):
  __construct()
  addslashes_recursively()
  add_magic_quotes()
  set_var()
  recursive_set_var()


Class: type_cast_helper  - X-Ref

A helper class that provides convenience methods for type casting.

__construct()   X-Ref
Initialises the type cast helper class.
All it does is find out whether magic quotes are turned on.


addslashes_recursively(&$var)   X-Ref
Recursively applies addslashes to a variable.

param: mixed    &$var    Variable passed by reference to which slashes will be added.

add_magic_quotes(&$var)   X-Ref
Recursively applies addslashes to a variable if magic quotes are turned on.

param: mixed    &$var    Variable passed by reference to which slashes will be added.

set_var(&$result, $var, $type, $multibyte = false, $trim = true)   X-Ref
Set variable $result to a particular type.

param: mixed    &$result        The variable to fill
param: mixed    $var            The contents to fill with
param: mixed    $type            The variable type. Will be used with {@link settype()}
param: bool    $multibyte        Indicates whether string values may contain UTF-8 characters.
param: bool    $trim            Indicates whether trim() should be applied to string values.

recursive_set_var(&$var, $default, $multibyte, $trim = true)   X-Ref
Recursively sets a variable to a given type using {@link set_var set_var}

param: string    $var        The value which shall be sanitised (passed by reference).
param: mixed    $default    Specifies the type $var shall have.
param: bool    $multibyte    Indicates whether string keys and values may contain UTF-8 characters.
param: bool    $trim        Indicates whether trim() should be applied to string values.



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1