public static function loadClass($class,
$dirs = null
) { if (class_exists($class, false
) ||
interface_exists($class, false
)) { return;
} if ((null !==
$dirs) && !
is_string($dirs) && !
is_array($dirs)) { throw new Zend_Exception('Directory argument must be a string or an array'
);
} $file = self::
standardiseFile($class);
if (!
empty($dirs)) { // use the autodiscovered path
$dirPath =
dirname($file);
if (is_string($dirs)) { $dirs =
explode(PATH_SEPARATOR,
$dirs);
} foreach ($dirs as $key =>
$dir) { if ($dir == '.'
) { $dirs[$key] =
$dirPath;
} else {