/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Filesystem/Directory/ReadInterface.php
107 строк
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Framework\Filesystem\Directory; /** * Interface \Magento\Framework\Filesystem\Directory\ReadInterface * @api * @since 100.0.2 */ interface ReadInterface { /** * Get absolute path * * @param string $path [optional] * @return string */ public function getAbsolutePath($path = null); /** * Get relative path * * @param string $path * @return string */ public function getRelativePath($path = null); /** * Retrieve list of all entities in given path * * @param string $path [optional] * @return array */ public function read($path = null); /** * Search all entries for given regex pattern * * @param string $pattern * @param string $path [optional] * @return array */ public function search($pattern, $path = null); /** * Check a file or directory exists * * @param string $path [optional] * @return bool */ public function isExist($path = null); /** * Gathers the statistics of the given path * * @param string $path * @return array */ public function stat($path); /** * Check permissions for reading file or directory * * @param string $path [optional] * @return bool */ public function isReadable($path = null); /** * Check whether given path is file * * @param string $path * @return bool */ public function isFile($path); /** * Check whether given path is directory * * @param string $path [optional] * @return bool */ public function isDirectory($path = null); /** * Open file in read mode * * @param string $path * @return \Magento\Framework\Filesystem\File\ReadInterface * @throws \Magento\Framework\Exception\FileSystemException */ public function openFile($path); /** * Retrieve file contents from given path * * @param string $path * @param string|null $flag * @param resource|null $context * @return string * @throws \Magento\Framework\Exception\FileSystemException */ public function readFile($path, $flag = null, $context = null); }