From 27837fe711d798538e26a77665268e1e10f78f3f Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 7 Feb 2019 16:26:05 +0300 Subject: [PATCH] Flextype Core: Entries - new method delete() - added. --- flextype/Entries.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/flextype/Entries.php b/flextype/Entries.php index b64ae20c..8294ed26 100755 --- a/flextype/Entries.php +++ b/flextype/Entries.php @@ -282,10 +282,21 @@ class Entries } } + /** + * Delete entry. + * + * @param string $entry Entry + * @return bool True on success, false on failure. + */ + public static function delete(string $entry) : bool + { + return Filesystem::delete(PATH['entries'] . '/' . $entry); + } + /** * Check whether entry exists. * - * @param string $entry Entry to find + * @param string $entry Entry * @return bool */ public static function has(string $entry) : bool