| 1 | <?php |
||
| 22 | class context |
||
| 23 | { |
||
| 24 | public static $context = null; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Adds/overrides a set of properties/methods in a new 'stack frame' |
||
| 28 | * @param $params |
||
| 29 | */ |
||
| 30 | public static function push($params) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Removes last addition/overrides from the container. |
||
| 37 | */ |
||
| 38 | public static function pop() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Take a peek at earlier entries of the container. |
||
| 45 | * @param int $level |
||
| 46 | * @return null |
||
| 47 | */ |
||
| 48 | public static function peek($level = 0) |
||
| 57 | } |
||
| 58 | |||
| 62 |