You are here

private function ProxyGenerator::generateProxyShortClassName in Plug 7

Generates the proxy short class name to be used in the template.

Parameters

\Doctrine\Common\Persistence\Mapping\ClassMetadata $class:

Return value

string

2 calls to ProxyGenerator::generateProxyShortClassName()
ProxyGenerator::generateProxyClass in lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
Generates a proxy class file.
ProxyGenerator::generateWakeupImpl in lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
Generates implementation for the `__wakeup` method of proxies.

File

lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php, line 315

Class

ProxyGenerator
This factory is used to generate proxy classes. It builds proxies from given parameters, a template and class metadata.

Namespace

Doctrine\Common\Proxy

Code

private function generateProxyShortClassName(ClassMetadata $class) {
  $proxyClassName = ClassUtils::generateProxyClassName($class
    ->getName(), $this->proxyNamespace);
  $parts = explode('\\', strrev($proxyClassName), 2);
  return strrev($parts[0]);
}