| 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 | 12 | function init_cookie ($cookie = []) { |
|
| 37 | /** |
||
| 38 | * Get cookie by name |
||
| 39 | * |
||
| 40 | * @param string $name |
||
| 41 | * |
||
| 42 | * @return null|string Cookie content if exists or `null` otherwise |
||
| 43 | */ |
||
| 44 | 16 | function cookie ($name) { |
|
| 47 | } |
||
| 48 |