클래스·함수 명세

Storage

Zittme\Framework\Storage 클래스의 공개 메서드 목록입니다. 이 문서는 Zittme 코어 소스에서 자동 생성되었습니다.

소스: common/framework/Storage.php

공개 메서드

  • static function exists(string $path)
  • Check if a path really exists.
  • static function isFile(string $path)
  • Check if the given path is a file.
  • static function isEmptyFile(string $path)
  • Check if the given path is an empty file.
  • static function isDirectory(string $path)
  • Check if the given path is a directory.
  • static function isEmptyDirectory(string $path)
  • Check if the given path is an empty directory.
  • static function isSymlink(string $path)
  • Check if the given path is a symbolic link.
  • static function isValidSymlink(string $path)
  • Check if the given path is a valid symbolic link.
  • static function isReadable(string $path)
  • Check if the given path is readable.
  • static function isWritable(string $path)
  • Check if the given path is writable.
  • static function isExecutable(string $path)
  • Check if the given path is executable.
  • static function getSize(string $filename)
  • Get the size of a file.
  • static function read(string $filename, bool $stream = false)
  • Get the content of a file.
  • static function readPHPData(string $filename)
  • Read PHP data from a file, formatted for easy retrieval.
  • static function write(string $filename, $content, string $mode = 'w', ?int $perms = null)
  • Write $content to a file.
  • static function writePHPData(string $filename, $data, ?string $comment = null, bool $serialize = true)
  • Write PHP data to a file, formatted for easy retrieval.
  • static function copy(string $source, string $destination, ?int $destination_perms = null)
  • Copy $source to $destination.
  • static function move(string $source, string $destination)
  • Move $source to $destination.
  • static function moveUploadedFile(string $source, string $destination, string $type = '')
  • Move uploaded $source to $destination.
  • static function delete(string $filename)
  • Delete a file.
  • static function createDirectory(string $dirname, ?int $mode = null)
  • Create a directory.
  • static function readDirectory(string $dirname, bool $full_path = true, bool $skip_dotfiles = true, bool $skip_subdirs = true)
  • Read the list of files in a directory.
  • static function copyDirectory(string $source, string $destination, string $exclude_regexp = '')
  • Copy a directory recursively.
  • static function moveDirectory(string $source, string $destination)
  • Move a directory.
  • static function deleteDirectory(string $dirname, bool $delete_self = true)
  • Delete a directory recursively.
  • static function deleteEmptyDirectory(string $dirname, bool $delete_empty_parents = false)
  • Delete a directory only if it is empty.
  • static function protectDirectory(string $dirname)
  • Prevent access to a directory by creating .htaccess and index.html files in it.
  • static function getUmask()
  • Get the current umask.
  • static function setUmask(int $umask)
  • Set the current umask.
  • static function recommendUmask()
  • Determine the best umask for this installation of Zittme.
  • static function getServerUID()
  • Get the UID of the server process.
  • static function getLock(string $name)
  • Obtain an exclusive lock.
  • static function clearLocks()
  • Clear all locks.