PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.8
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.8
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
visualizer / vendor / markbaker / matrix / classes / Bootstrap.php

Bootstrap.php in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.4.8, at vendor/markbaker/matrix/classes/Bootstrap.php

39 lines 964 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 include_once __DIR__ . '/Autoloader.php';
4
5 \Matrix\Autoloader::Register();
6
7
8 abstract class FilesystemRegexFilter extends RecursiveRegexIterator
9 {
10 protected $regex;
11 public function __construct(RecursiveIterator $it, $regex)
12 {
13 $this->regex = $regex;
14 parent::__construct($it, $regex);
15 }
16 }
17
18 class FilenameFilter extends FilesystemRegexFilter
19 {
20 // Filter files against the regex
21 public function accept()
22 {
23 return (!$this->isFile() || preg_match($this->regex, $this->getFilename()));
24 }
25 }
26
27
28 $srcFolder = __DIR__ . DIRECTORY_SEPARATOR . 'src';
29 $srcDirectory = new RecursiveDirectoryIterator($srcFolder);
30
31 $filteredFileList = new FilenameFilter($srcDirectory, '/(?:php)$/i');
32 $filteredFileList = new FilenameFilter($filteredFileList, '/^(?!.*(Matrix|Exception)\.php).*$/i');
33
34 foreach (new RecursiveIteratorIterator($filteredFileList) as $file) {
35 if ($file->isFile()) {
36 include_once $file;
37 }
38 }
39