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:
@@ -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
|
||||
|
Reference in New Issue
Block a user