1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 09:14:58 +02:00

Add PR #106 - Add “since” versions for $files API var find() and includeOnce() methods

Co-authored-by: happy-kaseem <kaseem@meisterkonze.ch>
Co-authored-by: matjazpotocnik <matjaz.potocnik@um.si>
This commit is contained in:
Ryan Cramer
2021-05-12 14:58:11 -04:00
parent 89d52edaa6
commit 79b952753c

View File

@@ -594,6 +594,7 @@ class WireFileTools extends Wire {
* - `excludeHidden` (bool): Exclude hidden files? (default=false).
* - `returnRelative` (bool): Make returned array have filenames relative to given start $path? (default=false)
* @return array Flat array of filenames
* @since 3.0.96
*
*/
public function find($path, array $options = array()) {
@@ -1173,6 +1174,7 @@ class WireFileTools extends Wire {
* @param array $options
* @return bool
* @see WireFileTools::include()
* @since 3.0.96
*
*/
function includeOnce($filename, array $vars = array(), array $options = array()) {