1
0
Fork 0

added Boolean return values for loadClass() method

pull/167/head
Pierre Minnieur 2011-12-21 11:50:24 +01:00
parent 812bf9a2af
commit 4242a05a0e
1 changed files with 5 additions and 1 deletions

View File

@ -83,12 +83,16 @@ class ClassLoader
* Loads the given class or interface.
*
* @param string $class The name of the class
* @return Boolean True, if loaded
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
require $file;
return true;
}
return false;
}
/**