mirror of
https://github.com/flextype/flextype.git
synced 2025-08-23 05:16:03 +02:00
@@ -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'])) {
|
||||
|
Reference in New Issue
Block a user