$dirs =
explode(PATH_SEPARATOR,
$dirs);
} foreach ($dirs as $key =>
$dir) { if ($dir == '.'
) { $dirs[$key] =
$dirPath;
} else { $dir =
rtrim($dir, '\\/'
);
$dirs[$key] =
$dir . DIRECTORY_SEPARATOR .
$dirPath;
} } $file =
basename($file);
self::
loadFile($file,
$dirs, true
);
} else { self::
loadFile($file, null, true
);
} if (!
class_exists($class, false
) && !
interface_exists($class, false
)) { throw new Zend_Exception("File \"
$file\" does not exist or class \"
$class\" was not found in the file"
);
} } /**
* Loads a PHP file. This is a wrapper for PHP's include() function.
*
* $filename must be the complete filename, including any
* extension such as ".php". Note that a security check is performed that
* does not permit extended characters in the filename. This method is
* intended for loading Zend Framework files.
*
* If $dirs is a string or an array, it will search the directories
* in the order supplied, and attempt to load the first matching file.
*
* If the file was not found in the $dirs, or if no $dirs were specified,
* it will attempt to load it from PHP's include_path.
*
* If $once is TRUE, it will use include_once() instead of include().
*
* @param string $filename
* @param string|array $dirs - OPTIONAL either a path or array of paths
* to search.
* @param boolean $once
* @return boolean
* @throws Zend_Exception
*/