You are here

public static function ClassUtils::generateProxyClassName in Plug 7

Given a class name and a proxy namespace returns the proxy name.

Parameters

string $className:

string $proxyNamespace:

Return value

string

3 calls to ClassUtils::generateProxyClassName()
ClassUtilsTest::testGenerateProxyClassName in lib/doctrine/common/tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php
ProxyGenerator::generateNamespace in lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
Generates the proxy namespace.
ProxyGenerator::generateProxyShortClassName in lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
Generates the proxy short class name to be used in the template.

File

lib/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php, line 105

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 generateProxyClassName($className, $proxyNamespace) {
  return rtrim($proxyNamespace, '\\') . '\\' . Proxy::MARKER . '\\' . ltrim($className, '\\');
}