public function getRealClassName($type, $class)
{
$namespace = Configure::read('App.namespace');
if ($this->plugin) {
$namespace = str_replace('/', '\\', $this->plugin);
}
$suffix = $this->classSuffixes[strtolower($type)];
$subSpace = $this->mapType($type);
if ($suffix && strpos($class, $suffix) === false) {
$class .= $suffix;
}
if ($type === 'controller' && $this->param('prefix')) {
$subSpace .= '\\' . Inflector::camelize($this->param('prefix'));
}
return $namespace . '\\' . $subSpace . '\\' . $class;
}