15 public static function image($dir = null, $width = 640, $height = 480, $category = null, $fullPath =
true, $randomize =
true, $word = null, $gray =
false) {
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);
39 $key = array_rand($files);
Provide images from a local folder for seeding.
static image($dir=null, $width=640, $height=480, $category=null, $fullPath=true, $randomize=true, $word=null, $gray=false)
{}
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
elgg_get_config($name, $default=null)
Get an Elgg configuration value.