phpBB API Documentation
Class

phpbb\request\deactivated_super_global

class deactivated_super_global implements ArrayAccess, Countable, IteratorAggregate

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

Methods

__construct(request_interface $request, $name, $super_global)

Constructor generates an error message fitting the super global to be used within the other functions.

offsetExists($offset)

Redirects isset to the correct request class call.

offsetGet($offset)

offsetSet($offset, $value)

offsetUnset($offset)

count()

Part of the \Countable implementation, will always result in a FATAL error

getIterator()

Part of the Traversable/IteratorAggregate implementation, will always result in a FATAL error

Details

at line 44
public __construct(request_interface $request, $name, $super_global)

Constructor generates an error message fitting the super global to be used within the other functions.

Parameters

request_interface $request
$name
$super_global

at line 77
public offsetExists($offset)

Redirects isset to the correct request class call.

Parameters

$offset

at line 85
public offsetGet($offset)

Parameters

$offset

at line 90
public offsetSet($offset, $value)

Parameters

$offset
$value

at line 95
public offsetUnset($offset)

Parameters

$offset

at line 104
public count()

Part of the \Countable implementation, will always result in a FATAL error

at line 112
public getIterator()

Part of the Traversable/IteratorAggregate implementation, will always result in a FATAL error