Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
fileindex.php
1
<?php
2
3
namespace
Bitrix\Translate\Index
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Translate\Index
;
7
11
class
FileIndex
12
extends
Index\Internals\EO_FileIndex
13
{
22
public
static
function
createByFile
(Main\
IO
\
File
$file)
23
{
24
25
if
(
26
!$file instanceof Main\
IO
\
File
||
27
!$file->
isFile
() ||
28
!$file->isExists() ||
29
($file->getExtension() !=
'php'
)
30
)
31
{
32
throw
new
Main\ArgumentException
();
33
}
34
35
$file = (
new
static
())
36
->setPath($file->getPath());
37
38
return
$file;
39
}
40
41
}
Bitrix\Main\ArgumentException
Definition
exception.php:34
Bitrix\Main\IO\FileEntry\isFile
isFile()
Definition
fileentry.php:38
Bitrix\Main\IO\File
Definition
file.php:7
Bitrix\Translate\Index\FileIndex
Definition
fileindex.php:13
Bitrix\Translate\Index\FileIndex\createByFile
static createByFile(Main\IO\File $file)
Definition
fileindex.php:22
Bitrix\Main\IO
Definition
directory.php:2
Bitrix\Main
Bitrix\Translate\Index
Definition
aggregate.php:3
modules
translate
lib
index
fileindex.php
Создано системой
1.10.0