mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +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:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user