mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-12 10:18:39 +00:00
This will be used for the filestorage class that needs to be implemented.
87 lines
1.8 KiB
PHP
87 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.0
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @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 <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @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;
|
|
}
|