Documentation

ClassUtils
in package

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

Tags
author

Benjamin Eberlei kontakt@beberlei.de

author

Johannes Schmitt schmittjoh@gmail.com

Table of Contents

generateProxyClassName()  : string
Given a class name and a proxy namespace returns the proxy name.
getClass()  : string
Gets the real class name of an object (even if its a proxy).
getParentClass()  : string
Gets the real parent class name of a class or object.
getRealClass()  : string
Gets the real class name of a class name that could be a proxy.
newReflectionClass()  : ReflectionClass
Creates a new reflection class.
newReflectionObject()  : ReflectionObject
Creates a new reflection object.

Methods

generateProxyClassName()

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

public static generateProxyClassName(string $className, string $proxyNamespace) : string
Parameters
$className : string
$proxyNamespace : string
Return values
string

getClass()

Gets the real class name of an object (even if its a proxy).

public static getClass(object $object) : string
Parameters
$object : object
Return values
string

getParentClass()

Gets the real parent class name of a class or object.

public static getParentClass(string $className) : string
Parameters
$className : string
Return values
string

getRealClass()

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

public static getRealClass(string $class) : string
Parameters
$class : string
Return values
string

newReflectionClass()

Creates a new reflection class.

public static newReflectionClass(string $class) : ReflectionClass
Parameters
$class : string
Return values
ReflectionClass

newReflectionObject()

Creates a new reflection object.

public static newReflectionObject(object $object) : ReflectionObject
Parameters
$object : object
Return values
ReflectionObject

Search results