PHP Classes

File: application/third_party/dompdf/lib/php-svg-lib/src/autoload.php

Recommend this page to a friend!
  Classes of Muhammad Yahya   PPDB Prediksi   application/third_party/dompdf/lib/php-svg-lib/src/autoload.php   Download  
File: application/third_party/dompdf/lib/php-svg-lib/src/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PPDB Prediksi
Application to manage schools in Indonesia
Author: By
Last change:
Date: 2 years ago
Size: 505 bytes
 

Contents

Class file image Download
<?php
/**
 * @package php-svg-lib
 * @link http://github.com/PhenX/php-svg-lib
 * @author Fabien Ménager <fabien.menager@gmail.com>
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 */

spl_autoload_register(function($class) {
  if (
0 === strpos($class, "Svg")) {
   
$file = str_replace('\\', DIRECTORY_SEPARATOR, $class);
   
$file = realpath(__DIR__ . DIRECTORY_SEPARATOR . $file . '.php');
    if (
file_exists($file)) {
      include_once
$file;
    }
  }
});