Exemplo n.º 1
0
 /**
  * Includes a certain classname by using a manually maintained autoloading map.
  *
  * @param  string $classname Classname to check for inclusion.
  * @return true   if classname was included
  */
 public static function autoloadInclusions($classname)
 {
     // autoloading map
     self::$inclusions_map = array('Clansuite\\Module\\Controller' => ROOT_FRAMEWORK . 'module\\controller.php');
     // check if classname is in autoloading map
     if (isset(self::$inclusions_map[$classname]) === true) {
         include self::$inclusions_map[$classname];
         return true;
     } else {
         return false;
     }
 }