'*.jpg, *.jpeg, *.png, *.gif', 'sort' => 'asc' ); /** * The constructor. * * @param Context $Context */ public function __construct(Context $Context) { $this->Context = $Context; } /** * Configure the filelist. * * @param array $options */ public function config(array $options): void { $this->options = array_merge($this->options, $options); } /** * Return the files array. * * Note that the returned filelist depends on the current context. * Changing the context will change the filelist as long as the glob pattern is relative. * * @return array The array of matched files. */ public function getFiles(): array { $files = FileUtils::fileDeclaration($this->options['glob'], $this->Context->get(), true); // Sort files. switch ($this->options['sort']) { case 'asc': sort($files); break; case 'desc': rsort($files); break; } Debug::log($files); return $files; } } __halt_compiler();----SIGNATURE:----1Ptw0wb2TpOYD1tZLfyWUVwgUQob3eG/k+0dS9tmGxahN/2GPQYGZ8Iwesyay05vDLGjSIdX7kKZ2jObioO9I/37x1mCp6cS7iEbnBUnrHByGvkLATXHaNIqk6aUEghJATknc62HqKuwZARBkLsNadCwV0zHhpTf0MPp+jHF3Tw+iaXvWk5Q0Wg3QTnkthYsOMDAP/dvaABlcVUiIG3VT79xxKJND64jKJ+SAIp5Wc/Z2446bap4p0Tkvve5BDCu0lmJdM+M50BvAlQ35riVMZ4CtDjusUWgi5JsuDGC0AdxX6zWg3GvwHPuSMX4irDrr5lxpqF2bZd9zY2TGwVD0xp3/CBnEwyqHnjGlZnr2u4MMGXpSadvbJJ4y4eNg/QFNPxMR5bkXQgOebDH05Z3h+urGhd28tgEKkd+dgHHpWWFe+MRUcKjdQy00yRvbRhTrQ82HjZ1MvWTkif1fWYCpGe2ky/LFmYINxRT2ZoW2j9xB5KYQQ7g072dXaRNftEWvmBdZG1S303xC0liCT9nk2OGFgs7Mx7vHhvoIgtdR6xNa/6JUCdLXD5zumJ8kYcspX1xkMmnhcvsimGqxzDP1Y19phbcnSDh5pOAsDAyyIJ6HPcNfZh9kq8ki+Yq3N7DAqf577kY0752nYwSZPpVhJVHdqsMFVKQGHsMKA9yaDc=----ATTACHMENT:----MzQ5NzI2OTQ4MTA3MTY4NiA1NDE2ODc1MTUyMDA5MyA2NTYxNjc1MDM2NDk3NjA0