1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-15 09:34:14 +02:00

Flextype Core: Entries API cleanup and refactoring

This commit is contained in:
Awilum
2019-08-19 15:00:22 +03:00
parent 91b6a7b43f
commit d6a38cb714

View File

@@ -359,8 +359,8 @@ class Entries
/**
* Rename entry.
*
* @param string $id Entry id
* @param string $new_id New entry id
* @param string $id Entry ID
* @param string $new_id New entry ID
*
* @return bool True on success, false on failure.
*
@@ -374,9 +374,11 @@ class Entries
/**
* Update entry
*
* @param string $id Entry
* @param string $id Entry ID
* @param array $data Data
*
* @return bool True on success, false on failure.
*
* @access public
*/
public function update(string $id, array $data) : bool
@@ -393,9 +395,11 @@ class Entries
/**
* Create entry
*
* @param string $id Entry id
* @param string $id Entry ID
* @param array $data Data
*
* @return bool True on success, false on failure.
*
* @access public
*/
public function create(string $id, array $data) : bool
@@ -424,9 +428,9 @@ class Entries
}
/**
* Delete entry.
* Delete entry
*
* @param string $id Entry id
* @param string $id Entry ID
*
* @return bool True on success, false on failure.
*
@@ -456,7 +460,9 @@ class Entries
/**
* Check whether entry exists.
*
* @param string $id Entry
* @param string $id Entry ID
*
* @return bool True on success, false on failure.
*
* @access public
*/
@@ -468,7 +474,9 @@ class Entries
/**
* Helper method _file_location
*
* @param string $id Entry id
* @param string $id Entry ID
*
* @return string entry file location
*
* @access private
*/
@@ -480,7 +488,9 @@ class Entries
/**
* Helper method _dir_location
*
* @param string $id Entry id
* @param string $id Entry ID
*
* @return string entry directory location
*
* @access private
*/