File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/translate/lib/index/fileindex.php
Back
<?php namespace Bitrix\Translate\Index; use Bitrix\Main; use Bitrix\Translate\Index; /** * @see \Bitrix\Main\ORM\Objectify\EntityObject */ class FileIndex extends Index\Internals\EO_FileIndex { /** * Constructs instance by io\file. * * @param Main\IO\File $file Language file. * * @return Index\FileIndex * @throws Main\ArgumentException */ public static function createByFile(Main\IO\File $file) { if ( !$file instanceof Main\IO\File || !$file->isFile() || !$file->isExists() || ($file->getExtension() != 'php') ) { throw new Main\ArgumentException(); } $file = (new static()) ->setPath($file->getPath()); return $file; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings