1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 19:01:40 +02:00

Flextype Core: Entries API #154 #162 #161

- method fetchALL() issue with fetching entries recursively.
- remove unused Shortcodes code from method fetch()
This commit is contained in:
Awilum
2019-06-17 13:06:56 +03:00
parent 1fda644549
commit d6fd1512df

View File

@@ -45,8 +45,8 @@ class EntriesTwigExtension extends \Twig_Extension
return $this->flextype['entries']->fetch($entry);
}
public function fetchAll(string $entry, string $order_by = 'date', string $order_type = 'DESC', int $offset = null, int $length = null) : array
public function fetchAll(string $entry, string $order_by = 'date', string $order_type = 'DESC', int $offset = null, int $length = null, bool $recursive = false) : array
{
return $this->flextype['entries']->fetchAll($entry, $order_by, $order_type, $offset, $length);
return $this->flextype['entries']->fetchAll($entry, $order_by, $order_type, $offset, $length, $recursive);
}
}