public static function ClassUtils::getRealClass

Get the real class name of a class name that could be a proxy.

Parameters

string:

Return value

string

5 calls to ClassUtils::getRealClass()
AbstractClassMetadataFactory::getMetadataFor in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php
Gets the class metadata descriptor for a class.
ClassUtils::getClass in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php
Get the real class name of an object (even if its a proxy)
ClassUtils::getParentClass in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php
Get the real parent class name of a class or object
ClassUtils::newReflectionClass in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php
Create a new reflection class
ClassUtilsTest::testGetRealClass in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php
@dataProvider dataGetClass

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php, line 39

Class

ClassUtils
Class and reflection related functionality for objects that might or not be proxy objects at the moment.

Namespace

Doctrine\Common\Util

Code

public static function getRealClass($class) {
  if (false === ($pos = strrpos($class, '\\' . Proxy::MARKER . '\\'))) {
    return $class;
  }
  return substr($class, $pos + Proxy::MARKER_LENGTH + 2);
}