Coding with SPIP 2.1
SPIP 2.1 Technical Documentation

> > > > find_all_in_path

find_all_in_path

find_all_in_path() returns the list of files that match a specific pattern. Like find_in_path(), these files are searched for in all the directories defined in the SPIP file path.

  1. $list_of_files = find_all_in_path($dir, $pattern);

Example

SPIP uses this function to get all the CSS files that the plugins add to the private interface using the files named "prive/style_prive_plugin_prefix.html". To do so, it uses the following line of PHP code:

  1. $list = find_all_in_path('prive/', '/style_prive_plugin_');