1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

Flextype Core: Entries - new method delete() - added.

This commit is contained in:
Awilum
2019-02-07 16:26:05 +03:00
parent 4b06aa3e39
commit 27837fe711

View File

@@ -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