| 1 | <?php |
||
| 11 | class OldInput { |
||
| 12 | /** |
||
| 13 | * Key to store the flashed data with |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | const FLASH_KEY = '__wpEmergeOldInput'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get all previously flashed request data |
||
| 21 | * |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | 2 | public function all() { |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Get any previously flashed request data value |
||
| 30 | * |
||
| 31 | * @see Arr::get() |
||
| 32 | */ |
||
| 33 | 2 | public function get() { |
|
| 39 | |||
| 40 | /** |
||
| 41 | * Clear previously stored input |
||
| 42 | */ |
||
| 43 | 1 | public function clear() { |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Store the current input |
||
| 55 | * |
||
| 56 | * @param array $input |
||
| 57 | */ |
||
| 58 | 1 | public function store( $input ) { |
|
| 67 | } |
||
| 68 |