|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for Slim\Http\Environment:
Collaboration diagram for Slim\Http\Environment:Static Public Member Functions | |
| static | mock (array $userData=[]) |
| Create mock environment. More... | |
| static | mock (array $settings=[]) |
Additional Inherited Members | |
Public Member Functions inherited from Slim\Collection | |
| __construct (array $items=[]) | |
| Create new collection. More... | |
| set ($key, $value) | |
| Set collection item. More... | |
| get ($key, $default=null) | |
| Get collection item for key. More... | |
| replace (array $items) | |
| Add item to collection, replacing existing items with the same data key. More... | |
| all () | |
| Get all items in collection. More... | |
| keys () | |
| Get collection keys. More... | |
| has ($key) | |
| Does this collection have a given key? More... | |
| remove ($key) | |
| Remove item from collection. More... | |
| clear () | |
| Remove all items from collection. More... | |
| offsetExists ($key) | |
| Does this collection have a given key? More... | |
| offsetGet ($key) | |
| Get collection item for key. More... | |
| offsetSet ($key, $value) | |
| Set collection item. More... | |
| offsetUnset ($key) | |
| Remove item from collection. More... | |
| count () | |
| Get number of items in collection. More... | |
| getIterator () | |
| Get collection iterator. More... | |
| set ($key, $value) | |
| get ($key, $default=null) | |
| replace (array $items) | |
| all () | |
| has ($key) | |
| remove ($key) | |
| clear () | |
Protected Attributes inherited from Slim\Collection | |
| $data = [] | |
This class decouples the Slim application from the global PHP environment. This is particularly useful for unit testing, but it also lets us create custom sub-requests.
Definition at line 21 of file Environment.php.
|
static |
Create mock environment.
| array | $userData | Array of custom environment keys and values |
Implements Slim\Interfaces\Http\EnvironmentInterface.
Definition at line 30 of file Environment.php.
References Slim\Collection\$data.