diff --git a/Algorithm/AlgorithmType.php b/Algorithm/AlgorithmType.php index e69de29bb..5d9d7bf0e 100644 --- a/Algorithm/AlgorithmType.php +++ b/Algorithm/AlgorithmType.php @@ -0,0 +1,34 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace phpOMS\Algorithm; + +use phpOMS\Datatypes\Enum; + +/** + * Task status enum. + * + * @category Tasks + * @package Modules + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +abstract class AlgorithmType extends Enum +{ + const BRUTEFORCE = 0; +} diff --git a/Algorithm/Knappsack/ItemInterface.php b/Algorithm/Knappsack/ItemInterface.php index e69de29bb..f9f53790b 100644 --- a/Algorithm/Knappsack/ItemInterface.php +++ b/Algorithm/Knappsack/ItemInterface.php @@ -0,0 +1,32 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace phpOMS\Algorithm\Knappsack; + +/** + * Shape interface. + * + * @category Framework + * @package phpOMS\Math + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +interface ItemInterface +{ + +} diff --git a/DataStorage/Cache/MemCache.php b/DataStorage/Cache/MemCache.php index f14d7bcda..faab742e1 100644 --- a/DataStorage/Cache/MemCache.php +++ b/DataStorage/Cache/MemCache.php @@ -74,7 +74,7 @@ class MemCache implements CacheInterface /** * {@inheritdoc} */ - public function set($key, $value, CacheStatus $type = null, int $expire = 2592000) + public function set($key, $value, int $expire = -1) { $this->memc->set($key, $value, false, $expire); } @@ -82,7 +82,7 @@ class MemCache implements CacheInterface /** * {@inheritdoc} */ - public function add($key, $value, CacheStatus $type = null, int $expire = 2592000) : bool + public function add($key, $value, int $expire = -1) : bool { return $this->memc->add($key, $value, false, $expire); } @@ -90,7 +90,7 @@ class MemCache implements CacheInterface /** * {@inheritdoc} */ - public function get($key, CacheStatus $type = null) + public function get($key, int $expire = -1) { return $this->memc->get($key); } @@ -98,7 +98,7 @@ class MemCache implements CacheInterface /** * {@inheritdoc} */ - public function delete($key, CacheStatus $type = null) : bool + public function delete($key, int $expire = -1) : bool { $this->memc->delete($key); } @@ -106,15 +106,27 @@ class MemCache implements CacheInterface /** * {@inheritdoc} */ - public function flush(CacheStatus $type = null) + public function flush(int $expire = 0) : bool { $this->memc->flush(); + + return true; } /** * {@inheritdoc} */ - public function replace($key, $value, CacheType $type = null, int $expire = -1) : bool + public function flushAll() : bool + { + $this->memc->flush(); + + return true; + } + + /** + * {@inheritdoc} + */ + public function replace($key, $value, int $expire = -1) : bool { $this->memc->replace($key, $value, false, $expire); } @@ -136,6 +148,14 @@ class MemCache implements CacheInterface return $this->threshold; } + /** + * {@inheritdoc} + */ + public function setStatus(int $status) + { + $this->status = $status; + } + /** * Destructor. * diff --git a/DataStorage/Cache/NullCache.php b/DataStorage/Cache/NullCache.php index 404ee2cd2..ada8a005b 100644 --- a/DataStorage/Cache/NullCache.php +++ b/DataStorage/Cache/NullCache.php @@ -32,7 +32,7 @@ class NullCache implements CacheInterface /** * {@inheritdoc} */ - public function set($key, $value, CacheStatus $type = null, int $expire = 2592000) + public function set($key, $value, int $expire = -1) { // TODO: Implement set() method. } @@ -40,7 +40,7 @@ class NullCache implements CacheInterface /** * {@inheritdoc} */ - public function add($key, $value, CacheStatus $type = null, int $expire = 2592000) : bool + public function add($key, $value, int $expire = -1) : bool { // TODO: Implement add() method. } @@ -48,7 +48,7 @@ class NullCache implements CacheInterface /** * {@inheritdoc} */ - public function get($key, CacheStatus $type = null) + public function get($key, int $expire = -1) { // TODO: Implement get() method. } @@ -56,7 +56,7 @@ class NullCache implements CacheInterface /** * {@inheritdoc} */ - public function delete($key, CacheStatus $type = null) : bool + public function delete($key, int $expire = -1) : bool { // TODO: Implement delete() method. } @@ -64,15 +64,27 @@ class NullCache implements CacheInterface /** * {@inheritdoc} */ - public function flush(CacheStatus $type = null) + public function flush(int $expire = 0) : bool { // TODO: Implement flush() method. + + return true; } /** * {@inheritdoc} */ - public function replace($key, $value, CacheType $type = null, int $expire = -1) : bool + public function flushAll() : bool + { + // TODO: Implement flush() method. + + return true; + } + + /** + * {@inheritdoc} + */ + public function replace($key, $value, int $expire = -1) : bool { // TODO: Implement replace() method. } @@ -93,4 +105,11 @@ class NullCache implements CacheInterface // TODO: Implement getThreshold() method. } + /** + * {@inheritdoc} + */ + public function setStatus(int $status) + { + // TODO: Implement setStatus() method. + } } diff --git a/DataStorage/Cache/RedisCache.php b/DataStorage/Cache/RedisCache.php index e93fb1167..b3afb4cc9 100644 --- a/DataStorage/Cache/RedisCache.php +++ b/DataStorage/Cache/RedisCache.php @@ -34,7 +34,7 @@ class RedisCache implements CacheInterface /** * {@inheritdoc} */ - public function set($key, $value, CacheStatus $type = null, int $expire = 2592000) + public function set($key, $value, int $expire = -1) { // TODO: Implement set() method. } @@ -42,7 +42,7 @@ class RedisCache implements CacheInterface /** * {@inheritdoc} */ - public function add($key, $value, CacheStatus $type = null, int $expire = 2592000) : bool + public function add($key, $value, int $expire = -1) : bool { // TODO: Implement add() method. } @@ -50,7 +50,7 @@ class RedisCache implements CacheInterface /** * {@inheritdoc} */ - public function get($key, CacheStatus $type = null) + public function get($key, int $expire = -1) { // TODO: Implement get() method. } @@ -58,7 +58,7 @@ class RedisCache implements CacheInterface /** * {@inheritdoc} */ - public function delete($key, CacheStatus $type = null) : bool + public function delete($key, int $expire = -1) : bool { // TODO: Implement delete() method. } @@ -66,15 +66,27 @@ class RedisCache implements CacheInterface /** * {@inheritdoc} */ - public function flush(CacheStatus $type = null) + public function flush(int $expire = 0) : bool { // TODO: Implement flush() method. + + return true; } /** * {@inheritdoc} */ - public function replace($key, $value, CacheType $type = null, int $expire = -1) : bool + public function flushAll() : bool + { + // TODO: Implement flush() method. + + return true; + } + + /** + * {@inheritdoc} + */ + public function replace($key, $value, int $expire = -1) : bool { // TODO: Implement replace() method. } @@ -95,4 +107,11 @@ class RedisCache implements CacheInterface // TODO: Implement getThreshold() method. } + /** + * {@inheritdoc} + */ + public function setStatus(int $status) + { + // TODO: Implement setStatus() method. + } } diff --git a/DataStorage/Cache/WinCache.php b/DataStorage/Cache/WinCache.php index 0690cded2..a41bfe7f9 100644 --- a/DataStorage/Cache/WinCache.php +++ b/DataStorage/Cache/WinCache.php @@ -34,7 +34,7 @@ class WinCache implements CacheInterface /** * {@inheritdoc} */ - public function set($key, $value, CacheStatus $type = null, int $expire = 2592000) + public function set($key, $value, int $expire = -1) { // TODO: Implement set() method. } @@ -42,7 +42,7 @@ class WinCache implements CacheInterface /** * {@inheritdoc} */ - public function add($key, $value, CacheStatus $type = null, int $expire = 2592000) : bool + public function add($key, $value, int $expire = -1) : bool { // TODO: Implement add() method. } @@ -50,7 +50,7 @@ class WinCache implements CacheInterface /** * {@inheritdoc} */ - public function get($key, CacheStatus $type = null) + public function get($key, int $expire = -1) { // TODO: Implement get() method. } @@ -58,7 +58,7 @@ class WinCache implements CacheInterface /** * {@inheritdoc} */ - public function delete($key, CacheStatus $type = null) : bool + public function delete($key, int $expire = -1) : bool { // TODO: Implement delete() method. } @@ -66,15 +66,27 @@ class WinCache implements CacheInterface /** * {@inheritdoc} */ - public function flush(CacheStatus $type = null) + public function flush(int $expire = 0) : bool { // TODO: Implement flush() method. + + return true; } /** * {@inheritdoc} */ - public function replace($key, $value, CacheType $type = null, int $expire = -1) : bool + public function flushAll() : bool + { + // TODO: Implement flush() method. + + return true; + } + + /** + * {@inheritdoc} + */ + public function replace($key, $value, int $expire = -1) : bool { // TODO: Implement replace() method. } @@ -95,4 +107,11 @@ class WinCache implements CacheInterface // TODO: Implement getThreshold() method. } + /** + * {@inheritdoc} + */ + public function setStatus(int $status) + { + // TODO: Implement setStatus() method. + } } diff --git a/Math/Numerics/Interpolation/CubicSplineInterpolation.php b/Math/Numerics/Interpolation/CubicSplineInterpolation.php index e69de29bb..4c4d52af1 100644 --- a/Math/Numerics/Interpolation/CubicSplineInterpolation.php +++ b/Math/Numerics/Interpolation/CubicSplineInterpolation.php @@ -0,0 +1,31 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace phpOMS\Math\Numerics\Interpolation; + +/** + * Web module interface. + * + * @category Framework + * @package phpOMS\Module + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class CubicSplineInterpolation +{ +} diff --git a/Math/Numerics/Interpolation/LinearInterpolation.php b/Math/Numerics/Interpolation/LinearInterpolation.php index e69de29bb..83791c413 100644 --- a/Math/Numerics/Interpolation/LinearInterpolation.php +++ b/Math/Numerics/Interpolation/LinearInterpolation.php @@ -0,0 +1,31 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace phpOMS\Math\Numerics\Interpolation; + +/** + * Web module interface. + * + * @category Framework + * @package phpOMS\Module + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class LinearInterpolation +{ +} diff --git a/Math/Numerics/Interpolation/PolynomialInterpolation.php b/Math/Numerics/Interpolation/PolynomialInterpolation.php index e69de29bb..771a69536 100644 --- a/Math/Numerics/Interpolation/PolynomialInterpolation.php +++ b/Math/Numerics/Interpolation/PolynomialInterpolation.php @@ -0,0 +1,31 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace phpOMS\Math\Numerics\Interpolation; + +/** + * Web module interface. + * + * @category Framework + * @package phpOMS\Module + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class PolynomialInterpolation +{ +} diff --git a/Stdlib/Graph/BinaryTree.php b/Stdlib/Graph/BinaryTree.php index 152c2fad3..e84bf8736 100644 --- a/Stdlib/Graph/BinaryTree.php +++ b/Stdlib/Graph/BinaryTree.php @@ -13,9 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -namespace phpOMS\Datatypes; - -use phpOMS\Validation\Base\IbanEnum; +namespace phpOMS\Stdlib\Graph; /** * Tree class. diff --git a/Stdlib/Graph/Edge.php b/Stdlib/Graph/Edge.php index b4bd7ce33..87207d6c6 100644 --- a/Stdlib/Graph/Edge.php +++ b/Stdlib/Graph/Edge.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -namespace phpOMS\Datatypes; +namespace phpOMS\Stdlib\Graph; /** * Tree class. diff --git a/Stdlib/Graph/Graph.php b/Stdlib/Graph/Graph.php index 63a67fdb4..c300429ee 100644 --- a/Stdlib/Graph/Graph.php +++ b/Stdlib/Graph/Graph.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -namespace phpOMS\Datatypes; +namespace phpOMS\Stdlib\Graph; /** * Tree class. diff --git a/Stdlib/Graph/Node.php b/Stdlib/Graph/Node.php index e556d3be6..8dd79e6dd 100644 --- a/Stdlib/Graph/Node.php +++ b/Stdlib/Graph/Node.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -namespace phpOMS\Datatypes; +namespace phpOMS\Stdlib\Graph; /** * Tree class. diff --git a/Stdlib/Graph/Tree.php b/Stdlib/Graph/Tree.php index 7a6213502..2797ae0ec 100644 --- a/Stdlib/Graph/Tree.php +++ b/Stdlib/Graph/Tree.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -namespace phpOMS\Datatypes; +namespace phpOMS\Stdlib\Graph; /** * Tree class. @@ -33,10 +33,10 @@ class Tree extends Graph public function __construct() { $root = new Node(); - $this->addNode($root); + parent::addNode($root); } - public function addNode(Node $base, Node $node) + public function addRelativeNode(Node $base, Node $node) { parent::addNode($node); parent::addEdge(new Edge($base, $node)); diff --git a/Stdlib/Queue/PriorityMode.php b/Stdlib/Queue/PriorityMode.php index 9ddc1319b..2b2ce5b0c 100644 --- a/Stdlib/Queue/PriorityMode.php +++ b/Stdlib/Queue/PriorityMode.php @@ -28,7 +28,7 @@ use phpOMS\Datatypes\Enum; * @link http://orange-management.com * @since 1.0.0 */ -abstract class PrioirtyMode extends Enum +abstract class PriorityMode extends Enum { const FIFO = 0; const LIFO = 0; diff --git a/System/File/Ftp/FtpStorage.php b/System/File/Ftp/FtpStorage.php index b27836860..503fc0ce5 100644 --- a/System/File/Ftp/FtpStorage.php +++ b/System/File/Ftp/FtpStorage.php @@ -32,127 +32,225 @@ use phpOMS\System\File\StorageAbstract; */ class FtpStorage extends StorageAbstract { - + /** + * {@inheritdoc} + */ public static function created(string $path) : \DateTime { // TODO: Implement created() method. } + /** + * {@inheritdoc} + */ public static function changed(string $path) : \DateTime { // TODO: Implement changed() method. } + /** + * {@inheritdoc} + */ public static function owner(string $path) : int { // TODO: Implement owner() method. } - public static function permission(string $path) : int + /** + * {@inheritdoc} + */ + public static function permission(string $path) : string { // TODO: Implement permission() method. } + /** + * {@inheritdoc} + */ public static function parent(string $path) : string { // TODO: Implement parent() method. } + /** + * {@inheritdoc} + */ public static function create(string $path) : bool { // TODO: Implement create() method. } + /** + * {@inheritdoc} + */ public static function delete(string $path) : bool { // TODO: Implement delete() method. } + /** + * {@inheritdoc} + */ public static function copy(string $from, string $to, bool $overwrite = false) : bool { // TODO: Implement copy() method. } + /** + * {@inheritdoc} + */ public static function move(string $from, string $to, bool $overwrite = false) : bool { // TODO: Implement move() method. } - public static function size(string $path) : int + /** + * {@inheritdoc} + */ + public static function size(string $path, bool $recursive = true) : int { // TODO: Implement size() method. } + /** + * {@inheritdoc} + */ public static function exists(string $path) : bool { // TODO: Implement exists() method. } - public function getCount() : int + /** + * {@inheritdoc} + */ + public static function name(string $path) : string + { + // TODO: Implement name() method. + } + + /** + * {@inheritdoc} + */ + public static function basename(string $path) : string + { + // TODO: Implement basename() method. + } + + /** + * {@inheritdoc} + */ + public static function count(string $path, bool $recursive = true, array $ignore = []) : int + { + // TODO: Implement count() method. + } + + /** + * {@inheritdoc} + */ + public function getCount(bool $recursive = false) : int { // TODO: Implement getCount() method. } - public function getSize() : int + /** + * {@inheritdoc} + */ + public function getSize(bool $recursive = false) : int { // TODO: Implement getSize() method. } + /** + * {@inheritdoc} + */ public function getName() : string { // TODO: Implement getName() method. } + /** + * {@inheritdoc} + */ public function getPath() : string { // TODO: Implement getPath() method. } + /** + * {@inheritdoc} + */ public function getParent() : ContainerInterface { // TODO: Implement getParent() method. } + /** + * {@inheritdoc} + */ public function createNode() : bool { // TODO: Implement createNode() method. } - public function copyNode() : bool + /** + * {@inheritdoc} + */ + public function copyNode(string $to, bool $overwrite = false) : bool { // TODO: Implement copyNode() method. } - public function moveNode() : bool + /** + * {@inheritdoc} + */ + public function moveNode(string $to, bool $overwrite = false) : bool { // TODO: Implement moveNode() method. } + /** + * {@inheritdoc} + */ public function deleteNode() : bool { // TODO: Implement deleteNode() method. } + /** + * {@inheritdoc} + */ public function getCreatedAt() : \DateTime { // TODO: Implement getCreatedAt() method. } + /** + * {@inheritdoc} + */ public function getChangedAt() : \DateTime { // TODO: Implement getChangedAt() method. } + /** + * {@inheritdoc} + */ public function getOwner() : int { // TODO: Implement getOwner() method. } + /** + * {@inheritdoc} + */ public function getPermission() : string { // TODO: Implement getPermission() method. } + /** + * {@inheritdoc} + */ public function index() { // TODO: Implement index() method. @@ -276,28 +374,123 @@ class FtpStorage extends StorageAbstract // TODO: Implement offsetUnset() method. } - public static function put(string $path, string $content, bool $overwrite = true) : bool + /** + * {@inheritdoc} + */ + public static function put(string $path, string $content, int $mode = 0) : bool { // TODO: Implement put() method. } + /** + * {@inheritdoc} + */ public static function get(string $path) : string { // TODO: Implement get() method. } - public function putContent() : bool + /** + * {@inheritdoc} + */ + public function putContent(string $content, int $mode = 0) : bool { // TODO: Implement putContent() method. } + /** + * {@inheritdoc} + */ public function getContent() : string { // TODO: Implement getContent() method. } - protected function getType() : ContainerInterface + /** + * {@inheritdoc} + */ + public static function sanitize(string $path, string $replace = '') : string { - // TODO: Implement getType() method. + // TODO: Implement sanitize() method. + } + + /** + * {@inheritdoc} + */ + public function getNode(string $name) + { + // TODO: Implement getNode() method. + } + + /** + * {@inheritdoc} + */ + public function addNode($file) : bool + { + // TODO: Implement addNode() method. + } + + /** + * {@inheritdoc} + */ + public static function set(string $path, string $content) : bool + { + // TODO: Implement set() method. + } + + /** + * {@inheritdoc} + */ + public static function append(string $path, string $content) : bool + { + // TODO: Implement append() method. + } + + /** + * {@inheritdoc} + */ + public static function prepend(string $path, string $content) : bool + { + // TODO: Implement prepend() method. + } + + /** + * {@inheritdoc} + */ + public static function extension(string $path) : string + { + // TODO: Implement extension() method. + } + + /** + * {@inheritdoc} + */ + public function setContent(string $content) : bool + { + // TODO: Implement setContent() method. + } + + /** + * {@inheritdoc} + */ + public function appendContent(string $content) : bool + { + // TODO: Implement appendContent() method. + } + + /** + * {@inheritdoc} + */ + public function prependContent(string $content) : bool + { + // TODO: Implement prependContent() method. + } + + /** + * {@inheritdoc} + */ + public function getExtension() : string + { + // TODO: Implement getExtension() method. } } \ No newline at end of file diff --git a/System/File/Local/LocalStorage.php b/System/File/Local/LocalStorage.php index 4c964fb88..5c757ba0f 100644 --- a/System/File/Local/LocalStorage.php +++ b/System/File/Local/LocalStorage.php @@ -139,7 +139,7 @@ class LocalStorage extends StorageAbstract /** * {@inheritdoc} */ - public static function count(string $path, bool $recursive = false) : int + public static function count(string $path, bool $recursive = true, array $ignore = []) : int { // TODO: Implement count() method. } @@ -405,4 +405,92 @@ class LocalStorage extends StorageAbstract { // TODO: Implement getContent() method. } + + /** + * {@inheritdoc} + */ + public static function sanitize(string $path, string $replace = '') : string + { + // TODO: Implement sanitize() method. + } + + /** + * {@inheritdoc} + */ + public function getNode(string $name) + { + // TODO: Implement getNode() method. + } + + /** + * {@inheritdoc} + */ + public function addNode($file) : bool + { + // TODO: Implement addNode() method. + } + + /** + * {@inheritdoc} + */ + public static function set(string $path, string $content) : bool + { + // TODO: Implement set() method. + } + + /** + * {@inheritdoc} + */ + public static function append(string $path, string $content) : bool + { + // TODO: Implement append() method. + } + + /** + * {@inheritdoc} + */ + public static function prepend(string $path, string $content) : bool + { + // TODO: Implement prepend() method. + } + + /** + * {@inheritdoc} + */ + public static function extension(string $path) : string + { + // TODO: Implement extension() method. + } + + /** + * {@inheritdoc} + */ + public function setContent(string $content) : bool + { + // TODO: Implement setContent() method. + } + + /** + * {@inheritdoc} + */ + public function appendContent(string $content) : bool + { + // TODO: Implement appendContent() method. + } + + /** + * {@inheritdoc} + */ + public function prependContent(string $content) : bool + { + // TODO: Implement prependContent() method. + } + + /** + * {@inheritdoc} + */ + public function getExtension() : string + { + // TODO: Implement getExtension() method. + } } \ No newline at end of file