ppi/framework — Issue #10: Proposal PPI\Array\Rename (draft name)
Author: avdg
Created: 2011-12-16 20:36:45+00:00
State: open

The PPI\Request\* are array objects which contains their data.
Using these objects should be pretty simple.

This works fine, as long you only have to deal with 1 application.
If you have to deal with multiple applications, you do not want to have conflicts.
To avoid such an issue, you could use namespaces, just as php has them.

A way to solve this issue, is to add a layer on top of it which acts as a translator.
Note: the idea is to make the translator a separate generic object which works on every normal array

```
+----------------------------------------------------------------------+
| +--------+ +------------+ |
| | object | <------------------------- | translator | <- $obj['foo']; |
| +--------+ +------------+ |
| $obj['namespace']['foo'] |
| |
| ^- Actual object Translation object-^ Actual array call-^ |
+----------------------------------------------------------------------+
```

The idea of the interface would be like this:

```php