Beispiel #1
0
 /**
  * 
  */
 public static function load($file, $autoload = true)
 {
     //print('loading file [' . $file . ']' . "\n");
     if ($autoload and QuickBooks_Loader::_autoload()) {
         return true;
     }
     static $loaded = array();
     if (isset($loaded[$file])) {
         return true;
     }
     $loaded[$file] = true;
     if (QUICKBOOKS_LOADER_REQUIREONCE) {
         require_once QUICKBOOKS_BASEDIR . $file;
     } else {
         require QUICKBOOKS_BASEDIR . $file;
     }
     return true;
 }