1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
filecontroller.php
См. документацию.
1<?php
2
3namespace Bitrix\Main\Web\WebPacker;
4
5use Bitrix\Main\ArgumentException;
6
13{
15 private $file;
16
18 private $loader;
19
25 public function delete()
26 {
27 $this->getOutputFile()->remove();
28 }
29
39 public function configureFile(?int $id, string $moduleId, string $dir, string $name): static
40 {
41 $this->getOutputFile()->setId($id)->setModuleId($moduleId)->setDir($dir)->setName($name);
42
43 return $this;
44 }
45
49 public function getLoader()
50 {
51 if (!$this->loader)
52 {
53 $this->loader = new Loader($this->getOutputFile());
54 }
55
56 return $this->loader;
57 }
58
64 protected function getOutputFile()
65 {
66 if (!$this->file)
67 {
68 $this->file = new Output\File();
69 }
70
71 $this->setOutput($this->file);
72
73 return $this->file;
74 }
75
82 public function setOutput(Output\Base $output)
83 {
84 if (! $output instanceof Output\File)
85 {
86 throw new ArgumentException('Output File expected.');
87 }
88
89 parent::setOutput($output);
90 return $this;
91 }
92
98 public function getOutput()
99 {
100 if (!$this->output)
101 {
102 $this->output = new Output\File();
103 }
104
105 return $this->output;
106 }
107}
Определения loader.php:13
setOutput(Output\Base $output)
Определения filecontroller.php:82
configureFile(?int $id, string $moduleId, string $dir, string $name)
Определения filecontroller.php:39
$moduleId
$name
Определения menu_edit.php:35
Определения Image.php:9
$dir
Определения quickway.php:303