Bitrix-D7  20.0.0
fileentry.php
См. документацию.
1 <?php
2 namespace Bitrix\Main\IO;
3 
4 abstract class FileEntry
5  extends FileSystemEntry
6 {
7  public function __construct($path, $siteId = null)
8  {
10  }
11 
12  public function getExtension()
13  {
14  return Path::getExtension($this->path);
15  }
16 
17  public abstract function getContents();
18  public abstract function putContents($data);
19  public abstract function getSize();
20  public abstract function isWritable();
21  public abstract function isReadable();
22  public abstract function readFile();
23 
24  /**
25  * @deprecated Use getSize() instead
26  * @return mixed
27  */
28  public function getFileSize()
29  {
30  return $this->getSize();
31  }
32 
33  public function isDirectory()
34  {
35  return false;
36  }
37 
38  public function isFile()
39  {
40  return true;
41  }
42 
43  public function isLink()
44  {
45  return false;
46  }
47 }
Bitrix\Main\IO\FileSystemEntry\$path
$path
Definition: filesystementry.php:8
Bitrix\Main\IO\FileEntry\isReadable
isReadable()
Bitrix\Main\IO\FileEntry\isFile
isFile()
Definition: fileentry.php:38
Bitrix\Main\IO\FileEntry\getContents
getContents()
Bitrix\Main\IO\FileSystemEntry\$siteId
$siteId
Definition: filesystementry.php:11
Bitrix\Main\IO\FileEntry\getExtension
getExtension()
Definition: fileentry.php:12
Bitrix\Main\IO\FileEntry\isWritable
isWritable()
Bitrix\Main\IO\FileEntry\getFileSize
getFileSize()
Definition: fileentry.php:28
Bitrix\Main\IO\FileEntry\isLink
isLink()
Definition: fileentry.php:43
Bitrix\Main\IO\FileEntry\__construct
__construct($path, $siteId=null)
Definition: fileentry.php:7
Bitrix\Main\IO\FileEntry\getSize
getSize()
Bitrix\Main\IO\FileEntry\readFile
readFile()
Bitrix\Main\IO\FileEntry\isDirectory
isDirectory()
Definition: fileentry.php:33
Bitrix\Main\IO\FileSystemEntry
Definition: filesystementry.php:6
Bitrix\Sender\Connector\__construct
__construct(Base $connector)
Constructor.
Definition: resultview.php:40
Bitrix\Main\IO
Definition: main/lib/io/directory.php:2
Bitrix\Main\IO\Path\getExtension
static getExtension($path)
Definition: main/lib/io/path.php:86
Bitrix\Main\IO\FileEntry
Definition: fileentry.php:4
Bitrix\Main\IO\FileEntry\putContents
putContents($data)