Context.php in Lasso Lite – Affiliate Link Manager & Product Displays 109, at libs/Raven/Context.php
| 1 | <?php |
| 2 | /** |
| 3 | * Storage for additional client context. |
| 4 | * |
| 5 | * @package raven |
| 6 | */ |
| 7 | class Raven_Context |
| 8 | { |
| 9 | /** |
| 10 | * @var array |
| 11 | */ |
| 12 | public $tags; |
| 13 | /** |
| 14 | * @var array |
| 15 | */ |
| 16 | public $extra; |
| 17 | /** |
| 18 | * @var array|null |
| 19 | */ |
| 20 | public $user; |
| 21 | |
| 22 | public function __construct() |
| 23 | { |
| 24 | $this->clear(); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Clean up existing context. |
| 29 | */ |
| 30 | public function clear() |
| 31 | { |
| 32 | $this->tags = array(); |
| 33 | $this->extra = array(); |
| 34 | $this->user = null; |
| 35 | } |
| 36 | } |
| 37 |