<?php /** * Autoload strategies * * @category Dispatcher * @package Mediboard * @subpackage Includes * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version SVN: $Id: autoload.php 20601 2013-10-10 13:45:17Z phenxdesign $ * @link http://www.mediboard.org */ CApp::$performance["autoloadCount"] = 0; CApp::$performance["autoload"] = array(); CApp::$classPaths = SHM::get("class-paths"); /** * Mediboard class autoloader * * @param string $class Class to be loaded * * @return bool */ function mbAutoload($class) { $file_exists = false; $time = microtime(true); // Entry already in cache if (isset(CApp::$classPaths[$class])) { // The class is known to not be in MB if (CApp::$classPaths[$class] === false) {