Server :
Apache
System :
Linux server1.cbinetwhm.bi 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64
User :
fenacobu (1017)
PHP Version :
8.1.34
Disable Functions :
NONE
Current Directory :
/home/fenacobu/www/libraries/smartslider3/src/Framework/Font/
Directory Status:
Writeable | Document Root:
Writeable
Upload File
Viewing: /home/fenacobu/www/libraries/smartslider3/src/Framework/Font/FontSources.php
<?php
namespace Nextend\Framework\Font;
use Nextend\Framework\Filesystem\Filesystem;
class FontSources {
/** @var AbstractFontSource[] */
private static $fontSources = array();
public function __construct() {
$dir = dirname(__FILE__) . '/Sources/';
foreach (Filesystem::folders($dir) as $folder) {
$file = $dir . $folder . '/' . $folder . '.php';
if (Filesystem::fileexists($file)) {
require_once($file);
}
}
}
/**
* @param string $class
*/
public static function registerSource($class) {
/** @var AbstractFontSource $source */
$source = new $class();
self::$fontSources[$source->getName()] = $source;
}
/**
* @return AbstractFontSource[]
*/
public static function getFontSources() {
return self::$fontSources;
}
public static function onFontManagerLoad($force = false) {
foreach (self::$fontSources as $source) {
$source->onFontManagerLoad($force);
}
}
public static function onFontManagerLoadBackend() {
foreach (self::$fontSources as $source) {
$source->onFontManagerLoadBackend();
}
}
}
new FontSources();
Cyb3r Drag0nz Team • Google Edition