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

chore(core): add comments for Entries read method #212 #186

This commit is contained in:
Awilum
2019-08-20 00:31:35 +03:00
parent db3bb2daa0
commit 912ee77738

View File

@@ -487,7 +487,15 @@ class Entries
return false;
}
/**
* Read entry
*
* @param string $id Entry ID
*
* @return bool|array Array of file path and decoded file data, false on failure.
*
* @access public
*/
public function read(string $id) {
foreach (Parser::$parsers as $parser) {
if (Filesystem::has(PATH['entries'] . '/' . $id . '/' . 'entry' . '.' . $parser['ext'])) {