public function StaticReflectionService::getClassShortName in Plug 7
Returns the shortname of a class.
Parameters
string $class:
Return value
string
Overrides ReflectionService::getClassShortName
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ StaticReflectionService.php, line 40
Class
- StaticReflectionService
- PHP Runtime Reflection Service.
Namespace
Doctrine\Common\Persistence\MappingCode
public function getClassShortName($className) {
if (strpos($className, '\\') !== false) {
$className = substr($className, strrpos($className, "\\") + 1);
}
return $className;
}