| @@ 39-48 (lines=10) @@ | ||
| 36 | * SwUploadHandler constructor. |
|
| 37 | * @param $options |
|
| 38 | */ |
|
| 39 | public function __construct($options) |
|
| 40 | { |
|
| 41 | $this->upload_dir = $options['upload_dir']; |
|
| 42 | $this->upload_url = $options['upload_url']; |
|
| 43 | $this->thumbnails_dir = $options['thumbnails_dir']; |
|
| 44 | $this->thumbnails_url = $options['thumbnails_url']; |
|
| 45 | $this->thumbnail_max_width = $options['thumbnail_max_width']; |
|
| 46 | $this->thumbnail_max_height = $options['thumbnail_max_height']; |
|
| 47 | $this->field_name = $options['field_name']; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @param $file_name |
|
| @@ 36-45 (lines=10) @@ | ||
| 33 | * SmallworldUploadHandler constructor. |
|
| 34 | * @param $options |
|
| 35 | */ |
|
| 36 | public function __construct($options) |
|
| 37 | { |
|
| 38 | $this->upload_dir = $options['upload_dir']; |
|
| 39 | $this->upload_url = $options['upload_url']; |
|
| 40 | $this->thumbnails_dir = $options['thumbnails_dir']; |
|
| 41 | $this->thumbnails_url = $options['thumbnails_url']; |
|
| 42 | $this->thumbnail_max_width = $options['thumbnail_max_width']; |
|
| 43 | $this->thumbnail_max_height = $options['thumbnail_max_height']; |
|
| 44 | $this->field_name = $options['field_name']; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * @param $file_name |
|