diff --git a/System/File/FileInterface.php b/System/File/FileInterface.php new file mode 100644 index 000000000..20d86cc16 --- /dev/null +++ b/System/File/FileInterface.php @@ -0,0 +1,86 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace phpOMS\System\File; + +/** + * Filesystem class. + * + * Performing operations on the file system + * + * @category Framework + * @package phpOMS\System\File + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +interface FileInterface +{ + public function getCount() : int; + + public function getSize() : int; + + public function getName() : string; + + public function getPath() : string; + + public function getParent() : FileInterface; + + public function createNode() : bool; + + public function copyNode() : bool; + + public function moveNode() : bool; + + public function deleteNode() : bool; + + public function putContent() : bool; + + public function getContent() : string; + + public function getCreatedAt() : \DateTime; + + public function getChangedAt() : \DateTime; + + public function getOwner() : int; + + public function getPermission() : string; + + public function index(); + + public static function createdAt() : \DateTime; + + public static function changedAt() : \DateTime; + + public static function owner() : int; + + public static function permission() : string; + + public static function parent() : string; + + public static function create() : bool; + + public static function delete() : bool; + + public static function copy() : bool; + + public static function move() : bool; + + public static function put() : bool; + + public static function get() : string; +}