Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
fileentry.php
1<?php
2namespace Bitrix\Main\IO;
3
4abstract class FileEntry
5 extends FileSystemEntry
6{
7 public function __construct($path, $siteId = null)
8 {
9 parent::__construct($path, $siteId);
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
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}
Definition fileentry.php:6
getFileSize()
Definition fileentry.php:28
getContents()
isDirectory()
Definition fileentry.php:33
isReadable()
isWritable()
isFile()
Definition fileentry.php:38
getSize()
isLink()
Definition fileentry.php:43
putContents($data)
__construct($path, $siteId=null)
Definition fileentry.php:7
readFile()
getExtension()
Definition fileentry.php:12
$path
$siteId
static getExtension($path)
Definition path.php:86