1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
filecontroller.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Main\Web\WebPacker;
4
5
use Bitrix\Main\ArgumentException;
6
12
class
FileController
extends
Builder
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
}
Bitrix\Main\ArgumentException
Определения
ArgumentException.php:9
Bitrix\Main\Loader
Определения
loader.php:13
Bitrix\Main\Web\WebPacker\Builder
Определения
builder.php:16
Bitrix\Main\Web\WebPacker\Builder\$output
$output
Определения
builder.php:18
Bitrix\Main\Web\WebPacker\FileController
Определения
filecontroller.php:13
Bitrix\Main\Web\WebPacker\FileController\getOutputFile
getOutputFile()
Определения
filecontroller.php:64
Bitrix\Main\Web\WebPacker\FileController\getLoader
getLoader()
Определения
filecontroller.php:49
Bitrix\Main\Web\WebPacker\FileController\setOutput
setOutput(Output\Base $output)
Определения
filecontroller.php:82
Bitrix\Main\Web\WebPacker\FileController\configureFile
configureFile(?int $id, string $moduleId, string $dir, string $name)
Определения
filecontroller.php:39
Bitrix\Main\Web\WebPacker\FileController\getOutput
getOutput()
Определения
filecontroller.php:98
$moduleId
$moduleId
Определения
group_bizproc_workflow_delete.php:16
$name
$name
Определения
menu_edit.php:35
Bitrix\Main\File
Определения
Image.php:9
Bitrix\Main\Web\WebPacker\Output
Определения
base.php:3
$dir
$dir
Определения
quickway.php:303
bitrix
modules
main
lib
web
webpacker
filecontroller.php
Создано системой
1.14.0