| 1 | <?php |
||
| 12 | trait Cookie { |
||
| 13 | /** |
||
| 14 | * Cookie array, similar to `$_COOKIE`, but also contains un-prefixed keys according to system configuration |
||
| 15 | * |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | public $cookie; |
||
| 19 | /** |
||
| 20 | * @param array $cookie Typically `$_COOKIE` |
||
| 21 | */ |
||
| 22 | 44 | public function init_cookie ($cookie = []) { |
|
| 40 | /** |
||
| 41 | * Get cookie by name |
||
| 42 | * |
||
| 43 | * @param string $name |
||
| 44 | * |
||
| 45 | * @return null|string Cookie content if exists or `null` otherwise |
||
| 46 | */ |
||
| 47 | 50 | public function cookie ($name) { |
|
| 50 | } |
||
| 51 |