| Conditions | 3 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function run() |
||
| 47 | { |
||
| 48 | FileListAsset::register($this->getView()); |
||
| 49 | |||
| 50 | $this->getView()->registerJs("yiiDownloadAllLink = '" . Url::toRoute('files/default/zip') . "'", View::POS_BEGIN, 'yiiDownloadAllLink'); |
||
| 51 | |||
| 52 | if ($this->passFirst && sizeof($this->files) > 0) |
||
| 53 | $this->files = array_slice($this->files, 1); |
||
| 54 | |||
| 55 | |||
| 56 | return $this->render('fileListWidget', [ |
||
| 57 | 'files' => $this->files, |
||
| 58 | 'zipTitle' => $this->zipTitle, |
||
| 59 | 'title' => $this->title, |
||
| 60 | 'downloadAll' => $this->downloadAll, |
||
| 61 | 'lightboxKey' => $this->lightboxKey, |
||
| 62 | 'allowImageSrcDownload' => $this->allowImageSrcDownload, |
||
| 63 | ]); |
||
| 65 | } |