15 public static function image($dir = null, $width = 640, $height = 480, $category = null, $fullPath =
true, $randomize =
true, $word = null) {
17 if (empty($local_folder) || !is_dir($local_folder)) {
18 return parent::image($dir, $width, $height, $category, $fullPath, $randomize, $word);
24 $dir = new \DirectoryIterator($local_folder);
26 foreach ($dir as
$file) {
27 if (!$file->isFile()) {
31 $files[] = $file->getRealPath();
35 return parent::image($dir, $width, $height, $category, $fullPath, $randomize, $word);
Provide images from a local folder for seeding.
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
if(!array_key_exists($filename, $text_files)) $file
elgg image block elgg image
static image($dir=null, $width=640, $height=480, $category=null, $fullPath=true, $randomize=true, $word=null)
{}
foreach($resources as $id=> $href) if(!empty($resources_html)) $files
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use