Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
isExists ($path) | |
stat ($path) | |
fileGetContents ($path, $flags=null, $context=null) | |
filePutContents ($path, $content, $mode=null, $context=null) | |
fileOpen ($path, $mode) | |
fileReadLine ($resource, $length, $ending=null) | |
getAbsolutePath ($basePath, $path, $scheme=null) | |
![]() | |
isExists ($path) | |
stat ($path) | |
isReadable ($path) | |
isFile ($path) | |
isDirectory ($path) | |
fileGetContents ($path, $flag=null, $context=null) | |
isWritable ($path) | |
getParentDirectory ($path) | |
createDirectory ($path, $permissions=0777) | |
search ($pattern, $path) | |
rename ($oldPath, $newPath, DriverInterface $targetDriver=null) | |
copy ($source, $destination, DriverInterface $targetDriver=null) | |
symlink ($source, $destination, DriverInterface $targetDriver=null) | |
deleteFile ($path) | |
changePermissions ($path, $permissions) | |
touch ($path, $modificationTime=null) | |
filePutContents ($path, $content, $mode=null) | |
fileOpen ($path, $mode) | |
fileReadLine ($resource, $length, $ending=null) | |
fileRead ($resource, $length) | |
fileGetCsv ($resource, $length=0, $delimiter=',', $enclosure='"', $escape = '\\') | |
fileTell ($resource) | |
fileSeek ($resource, $offset, $whence=SEEK_SET) | |
endOfFile ($resource) | |
fileClose ($resource) | |
fileWrite ($resource, $data) | |
fileFlush ($resource) | |
fileLock ($resource, $lockMode=LOCK_EX) | |
fileUnlock ($resource) | |
getAbsolutePath ($basePath, $path, $scheme=null) | |
getRelativePath ($basePath, $path=null) | |
getRealPath ($path) | |
getRealPathSafety ($path) | |
![]() | |
readDirectory ($path) | |
readDirectoryRecursively ($path=null) | |
deleteDirectory ($path) | |
changePermissionsRecursively ($path, $dirPermissions, $filePermissions) | |
filePutCsv ($resource, array $data, $delimiter=',', $enclosure='"') | |
Protected Member Functions | |
getScheme ($scheme=null) | |
open ($hostname, $port) | |
parseUrl ($path) | |
![]() | |
getWarningMessage () | |
fixSeparator ($path) | |
getScheme ($scheme=null) | |
Protected Attributes | |
$scheme = 'http' | |
![]() | |
$scheme = '' | |
Additional Inherited Members | |
![]() | |
const | WRITEABLE_DIRECTORY_MODE = 0770 |
const | WRITEABLE_FILE_MODE = 0660 |
fileGetContents | ( | $path, | |
$flags = null , |
|||
$context = null |
|||
) |
Retrieve file contents from given path
string | $path | |
string | null | $flags | |
resource | null | $context |
FileSystemException |
Implements DriverInterface.
Definition at line 88 of file Http.php.
fileOpen | ( | $path, | |
$mode | |||
) |
Open file
string | $path | |
string | $mode |
FileSystemException | @SuppressWarnings(PHPMD.UnusedFormalParameter) |
Implements DriverInterface.
Definition at line 136 of file Http.php.
filePutContents | ( | $path, | |
$content, | |||
$mode = null , |
|||
$context = null |
|||
) |
Open file in given path
string | $path | |
string | $content | |
string | null | $mode | |
resource | null | $context |
FileSystemException |
Definition at line 113 of file Http.php.
fileReadLine | ( | $resource, | |
$length, | |||
$ending = null |
|||
) |
Reads the line content from file pointer (with specified number of bytes from the current position).
resource | $resource | |
int | $length | |
string | $ending | [optional] |
FileSystemException |
Implements DriverInterface.
Definition at line 201 of file Http.php.
getAbsolutePath | ( | $basePath, | |
$path, | |||
$scheme = null |
|||
) |
Get absolute path
string | $basePath | |
string | $path | |
string | null | $scheme |
Implements DriverInterface.
Definition at line 217 of file Http.php.
|
protected |
isExists | ( | $path | ) |
Checks if path exists
string | $path |
FileSystemException |
Implements DriverInterface.
Definition at line 33 of file Http.php.
|
protected |
Open a url
string | $hostname | |
int | $port |
Definition at line 249 of file Http.php.
|
protected |
stat | ( | $path | ) |
Gathers the statistics of the given path
string | $path |
Implements DriverInterface.