From 16b9ba2ebaea0023c865f3d8d9f73b65133028d2 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 7 Feb 2019 17:01:59 +0300 Subject: [PATCH] Flextype Core: Entries - new method rename() - added. --- flextype/Entries.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flextype/Entries.php b/flextype/Entries.php index 69a688ac..cb1534d4 100755 --- a/flextype/Entries.php +++ b/flextype/Entries.php @@ -282,6 +282,18 @@ class Entries } } + /** + * Rename entry. + * + * @param string $entry Entry + * @param string $new_entry New entry + * @return bool True on success, false on failure. + */ + public static function rename(string $entry, string $new_entry) : bool + { + return rename($entry, $new_entry); + } + /** * Update entry *