plugin installs

This commit is contained in:
Tony Volpe
2024-09-25 09:25:31 -04:00
parent 65a07c8d4d
commit cc870f301f
2953 changed files with 514886 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
<?php
namespace Imagify\WriteFile;
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
/**
* Interface to add and remove contents to a file.
*
* @since 1.9
* @author Grégory Viguier
*/
interface WriteFileInterface {
/**
* Add new contents to the file.
*
* @since 1.9
* @access public
* @author Grégory Viguier
*
* @return bool|\WP_Error True on success. A \WP_Error object on error.
*/
public function add();
/**
* Remove the related contents from the file.
*
* @since 1.9
* @access public
* @author Grégory Viguier
*
* @return bool|\WP_Error True on success. A \WP_Error object on error.
*/
public function remove();
/**
* Get the path to the file.
*
* @since 1.9
* @access public
* @author Grégory Viguier
*
* @return string
*/
public function get_file_path();
/**
* Tell if the file is writable.
*
* @since 1.9
* @access public
* @author Grégory Viguier
*
* @return bool|\WP_Error True if writable. A \WP_Error object if not.
*/
public function is_file_writable();
/**
* Get new contents to write into the file.
*
* @since 1.9
* @access public
* @author Grégory Viguier
*
* @return string
*/
public function get_new_contents();
}