Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
fileindex.php
1<?php
2
4
7
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}
isFile()
Definition fileentry.php:38
static createByFile(Main\IO\File $file)
Definition fileindex.php:22