public static function ClassUtils::getRealClass in Plug 7
Gets the real class name of a class name that could be a proxy.
Parameters
string $class:
Return value
string
5 calls to ClassUtils::getRealClass()
- AbstractClassMetadataFactory::getMetadataFor in lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ AbstractClassMetadataFactory.php - Gets the class metadata descriptor for a class.
- ClassUtils::getClass in lib/
doctrine/ common/ lib/ Doctrine/ Common/ Util/ ClassUtils.php - Gets the real class name of an object (even if its a proxy).
- ClassUtils::getParentClass in lib/
doctrine/ common/ lib/ Doctrine/ Common/ Util/ ClassUtils.php - Gets the real parent class name of a class or object.
- ClassUtils::newReflectionClass in lib/
doctrine/ common/ lib/ Doctrine/ Common/ Util/ ClassUtils.php - Creates a new reflection class.
- ClassUtilsTest::testGetRealClass in lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Util/ ClassUtilsTest.php - @dataProvider dataGetClass
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Util/ ClassUtils.php, line 40
Class
- ClassUtils
- Class and reflection related functionality for objects that might or not be proxy objects at the moment.
Namespace
Doctrine\Common\UtilCode
public static function getRealClass($class) {
if (false === ($pos = strrpos($class, '\\' . Proxy::MARKER . '\\'))) {
return $class;
}
return substr($class, $pos + Proxy::MARKER_LENGTH + 2);
}