/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Filesystem/Directory/WriteInterface.php
131 строка
3 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\WriteInterface * @api * @since 100.0.2 */ interface WriteInterface extends ReadInterface { /** * Create directory if it does not exists * * @param string $path [optional] * @return bool * @throws \Magento\Framework\Exception\FileSystemException */ public function create($path = null); /** * Delete given path * * @param string $path [optional] * @return bool * @throws \Magento\Framework\Exception\FileSystemException */ public function delete($path = null); /** * Rename a file * * @param string $path * @param string $newPath * @param WriteInterface $targetDirectory [optional] * @return bool * @throws \Magento\Framework\Exception\FileSystemException */ public function renameFile($path, $newPath, ?WriteInterface $targetDirectory = null); /** * Copy a file * * @param string $path * @param string $destination * @param WriteInterface $targetDirectory [optional] * @return bool * @throws \Magento\Framework\Exception\FileSystemException */ public function copyFile($path, $destination, ?WriteInterface $targetDirectory = null); /** * Creates symlink on a file or directory and places it to destination * * @param string $path * @param string $destination * @param WriteInterface $targetDirectory [optional] * @return bool * @throws \Magento\Framework\Exception\FileSystemException */ public function createSymlink($path, $destination, ?WriteInterface $targetDirectory = null); /** * Change permissions of given path * * @param string $path * @param int $permissions * @return bool * @throws \Magento\Framework\Exception\FileSystemException */ public function changePermissions($path, $permissions); /** * Change permissions of given path * * @param string $path * @param int $dirPermissions * @param int $filePermissions * @return bool * @throws \Magento\Framework\Exception\FileSystemException */ public function changePermissionsRecursively($path, $dirPermissions, $filePermissions); /** * Sets access and modification time of file. * * @param string $path * @param int $modificationTime [optional] * @return bool * @throws \Magento\Framework\Exception\FileSystemException */ public function touch($path, $modificationTime = null); /** * Check if given path is writable * * @param string $path [optional] * @return bool */ public function isWritable($path = null); /** * Open file in given mode * * @param string $path * @param string $mode * @return \Magento\Framework\Filesystem\File\WriteInterface */ public function openFile($path, $mode = 'w'); /** * Open file in given path * * @param string $path * @param string $content * @param string $mode [optional] * @return int The number of bytes that were written. * @throws \Magento\Framework\Exception\FileSystemException */ public function writeFile($path, $content, $mode = null); /** * Get driver * * @return \Magento\Framework\Filesystem\DriverInterface */ public function getDriver(); }