[ Index ]

PHP Cross Reference of phpBB-3.3.12-deutsch

title

Body

[close]

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

Defines 1 class

deactivated_super_global:: (8 methods):
  __construct()
  error()
  offsetExists()
  offsetGet()
  offsetSet()
  offsetUnset()
  count()
  getIterator()


Class: deactivated_super_global  - X-Ref

Replacement for a superglobal (like $_GET or $_POST) which calls
trigger_error on all operations but isset, overloads the [] operator with SPL.

__construct(\phpbb\request\request_interface $request, $name, $super_global)   X-Ref
Constructor generates an error message fitting the super global to be used within the other functions.

param: \phpbb\request\request_interface    $request    A request class instance holding the real super global data.
param: string                    $name        Name of the super global this is a replacement for - e.g. '_GET'.
param: string    $super_global    The variable's super global constant (\phpbb\request\request_interface::POST|GET|REQUEST|COOKIE).

error()   X-Ref
Calls trigger_error with the file and line number the super global was used in.


offsetExists($offset)   X-Ref
Redirects isset to the correct request class call.

return: bool    Whether the key on the super global exists.
param: string    $offset    The key of the super global being accessed.

offsetGet($offset)   X-Ref
No description

offsetSet($offset, $value)   X-Ref
No description

offsetUnset($offset)   X-Ref
No description

count()   X-Ref
Part of the \Countable implementation, will always result in a FATAL error


getIterator()   X-Ref
Part of the Traversable/IteratorAggregate implementation, will always result in a FATAL error




Generated: Sun Jun 23 12:25:44 2024 Cross-referenced by PHPXref 0.7.1