[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch




/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: 125 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

type_cast_helper:: (2 methods):

Class: type_cast_helper  - X-Ref

A helper class that provides convenience methods for type casting.

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: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1