Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
directoryentry.php
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Main\Engine\Response\Zip
;
6
7
final
class
DirectoryEntry
implements
EntryInterface
8
{
9
private
const
DIRECTORY_PATH =
'@directory'
;
10
private
string
$path;
11
12
private
function
__construct(
string
$path)
13
{
14
$this->path = $path;
15
}
16
17
public
static
function
createEmptyDirectory
(
string
$path): self
18
{
19
return
new
self
($path);
20
}
21
22
public
function
getPath
(): string
23
{
24
return
$this->path;
25
}
26
27
public
function
getSize
(): int
28
{
29
return
0;
30
}
31
32
public
function
getServerRelativeUrl
(): string
33
{
34
return
self::DIRECTORY_PATH;
35
}
36
37
public
function
getCrc32
(): string
38
{
39
return
'0'
;
40
}
41
}
Bitrix\Main\Engine\Response\Zip\DirectoryEntry
Definition
directoryentry.php:8
Bitrix\Main\Engine\Response\Zip\DirectoryEntry\getPath
getPath()
Definition
directoryentry.php:22
Bitrix\Main\Engine\Response\Zip\DirectoryEntry\getServerRelativeUrl
getServerRelativeUrl()
Definition
directoryentry.php:32
Bitrix\Main\Engine\Response\Zip\DirectoryEntry\getCrc32
getCrc32()
Definition
directoryentry.php:37
Bitrix\Main\Engine\Response\Zip\DirectoryEntry\getSize
getSize()
Definition
directoryentry.php:27
Bitrix\Main\Engine\Response\Zip\DirectoryEntry\createEmptyDirectory
static createEmptyDirectory(string $path)
Definition
directoryentry.php:17
Bitrix\Main\Engine\Response\Zip\EntryInterface
Definition
entryinterface.php:6
Bitrix\Main\Engine\Response\Zip
Definition
archive.php:2
modules
main
lib
engine
response
zip
directoryentry.php
Создано системой
1.10.0