| 1 | <?php |
||
| 5 | trait LfiProtectionTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Flag indicating whether or not LFI protection for rendering view scripts is enabled |
||
| 9 | * |
||
| 10 | * @var bool |
||
| 11 | */ |
||
| 12 | protected $lfiProtectionOn = true; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Set LFI protection flag |
||
| 16 | * |
||
| 17 | * @param bool $flag |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | public function setLfiProtection($flag) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Return status of LFI protection flag |
||
| 27 | * |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function isLfiProtectionOn() |
||
| 34 | } |
||
| 35 |