DOMPDF_autoload

DOMPDF autoload function.

Description

DOMPDF_autoload( (string) $class ); 

If you have an existing autoload function, add a call to this function from your existing __autoload() implementation.

Parameters (1)

0. $class (string)
The class.

Usage

  1. if ( !function_exists( 'DOMPDF_autoload' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/autoload.inc.php'; 
  3.  
  4. // The class. 
  5. $class = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = DOMPDF_autoload($class); 
  9.  

Defined (1)

The function is defined in the following location(s).

/lib/dompdf/include/autoload.inc.php  
  1. function DOMPDF_autoload($class) { 
  2. $filename = DOMPDF_INC_DIR . "/" . mb_strtolower($class) . ".cls.php"; 
  3.  
  4. if ( is_file($filename) ) { 
  5. include_once $filename;