| 1 | <?php |
||
| 7 | class UploadableFile extends File |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Path to the project's root directory |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $root_path; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Web path to the file |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $web_path; |
||
| 22 | |||
| 23 | public function __construct($root_path, $web_path) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getRootPath() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getWebPath() |
||
| 46 | } |