__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace RocketTheme\Toolbox\File;
/**
* Defines FileInterface.
*
* @package RocketTheme\Toolbox\File
* @author RocketTheme
* @license MIT
*/
interface FileInterface
{
/**
* Get file instance.
*
* @param string $filename
* @return static
*/
public static function instance($filename);
/**
* Free the file instance.
*
* @return void
*/
public function free();
/**
* Check if file exits.
*
* @return bool
*/
public function exists();
/**
* Return file modification time.
*
* @return int Timestamp
*/
public function modified();
/**
* Lock file for writing.
*
* @param bool $block For non-blocking lock, set the parameter to false.
* @return bool
*/
public function lock($block = true);
/**
* Returns true if file has been locked for writing.
*
* @return bool|null True = locked, false = failed, null = not locked.
*/
public function locked();
/**
* Unlock file.
*
* @return bool
*/
public function unlock();
/**
* Check if file can be written.
*
* @return bool
*/
public function writable();
/**
* (Re)Load a file and return its contents.
*
* @return string
*/
public function load();
/**
* Get/set raw file contents.
*
* @param string|null $var
* @return string
*/
public function raw($var = null);
/**
* Get/set parsed file contents.
*
* @param string|array|null $var
* @return string|array
*/
public function content($var = null);
/**
* Save file.
*
* @param string|array|null $data Optional data to be saved.
* @return void
* @throws \RuntimeException
*/
public function save($data = null);
/**
* Delete file from filesystem.
*
* @return bool
*/
public function delete();
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AbstractFile.php | File | 11.91 KB | 0664 |
|
| File.php | File | 529 B | 0664 |
|
| FileInterface.php | File | 1.95 KB | 0664 |
|
| IniFile.php | File | 1.85 KB | 0664 |
|
| JsonFile.php | File | 1.4 KB | 0664 |
|
| LogFile.php | File | 1.86 KB | 0664 |
|
| MarkdownFile.php | File | 4.79 KB | 0664 |
|
| MoFile.php | File | 4.49 KB | 0664 |
|
| PhpFile.php | File | 2.69 KB | 0664 |
|
| YamlFile.php | File | 3.65 KB | 0664 |
|