Function __global->find_images_do_dir
Definitions
sources/themes2.php
- Recursively find theme images under the specified details. Does not find custom theme images, as it doesn't check the DB.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $theme | ID_TEXT | No | No | required parameter | N/A | N/A | The theme |
| $subdir | string | No | No | required parameter | N/A | N/A | The subdirectory to search under |
| $langs | array | No | No | required parameter | N/A | N/A | A map (lang=>true) of the languages in the system, so the codes may be filtered out of the image codes in our result list |
Returns
- A map, theme-image-code=>URL
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Recursively find theme images under the specified details. Does not find custom theme images, as it doesn't check the DB.
*
* @param ID_TEXT $theme The theme
* @param string $subdir The subdirectory to search under
* @param array $langs A map (lang=>true) of the languages in the system, so the codes may be filtered out of the image codes in our result list
* @return array A map, theme-image-code=>URL
*/
function find_images_do_dir(string $theme, string $subdir, array $langs) : array
* Recursively find theme images under the specified details. Does not find custom theme images, as it doesn't check the DB.
*
* @param ID_TEXT $theme The theme
* @param string $subdir The subdirectory to search under
* @param array $langs A map (lang=>true) of the languages in the system, so the codes may be filtered out of the image codes in our result list
* @return array A map, theme-image-code=>URL
*/
function find_images_do_dir(string $theme, string $subdir, array $langs) : array

