Packages

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • NAnnotation
  • NAnnotationsParser
  • NClassReflection
  • NExtensionReflection
  • NFunctionReflection
  • NMethodReflection
  • NParameterReflection
  • NPropertyReflection

Interfaces

  • IAnnotation
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Class NClassReflection

Reports information about a class.

ReflectionClass implements Reflector
Extended by NClassReflection
Package: Nette\Reflection
Author: David Grudl
Located at Reflection/ClassReflection.php
Methods summary
public static NClassReflection
# from( string|object $class )

Parameters

$class
string|object

Returns

NClassReflection
public
# __toString( )
public boolean
# hasEventProperty( $name )

Returns

boolean
public NClassReflection
# setExtensionMethod( string $name, mixed $callback )

Adds a method to class.

Adds a method to class.

Parameters

$name
string
method name
$callback
mixed
callback or closure

Returns

NClassReflection
provides a fluent interface
public mixed
# getExtensionMethod( string $name )

Returns extension method.

Returns extension method.

Parameters

$name
string
method name

Returns

mixed
public NMethodReflection
# getConstructor( )

Returns

NMethodReflection
public NExtensionReflection
# getExtension( )

Returns

NExtensionReflection
public
# getInterfaces( )
public NMethodReflection
# getMethod( $name )

Returns

NMethodReflection
public
# getMethods( $filter = -1 )
public NClassReflection
# getParentClass( )

Returns

NClassReflection
public
# getProperties( $filter = -1 )
public NPropertyReflection
# getProperty( $name )

Returns

NPropertyReflection
public boolean
# hasAnnotation( string $name )

Has class specified annotation?

Has class specified annotation?

Parameters

$name
string

Returns

boolean
public IAnnotation
# getAnnotation( string $name )

Returns an annotation value.

Returns an annotation value.

Parameters

$name
string

Returns

IAnnotation
public array
# getAnnotations( )

Returns all annotations.

Returns all annotations.

Returns

array
public NClassReflection
# getReflection( )

Returns

NClassReflection
public
# __call( $name, $args )
public &
# __get( $name )
public
# __set( $name, $value )
public
# __isset( $name )
public
# __unset( $name )
Methods inherited from ReflectionClass
__construct(), export(), getConstant(), getConstants(), getDefaultProperties(), getDocComment(), getEndLine(), getExtensionName(), getFileName(), getInterfaceNames(), getModifiers(), getName(), getNamespaceName(), getShortName(), getStartLine(), getStaticProperties(), getStaticPropertyValue(), hasConstant(), hasMethod(), hasProperty(), implementsInterface(), inNamespace(), isAbstract(), isFinal(), isInstance(), isInstantiable(), isInterface(), isInternal(), isIterateable(), isSubclassOf(), isUserDefined(), newInstance(), newInstanceArgs(), setStaticPropertyValue()
Constants inherited from ReflectionClass
IS_EXPLICIT_ABSTRACT, IS_FINAL, IS_IMPLICIT_ABSTRACT
Properties inherited from ReflectionClass
$name
Nette Framework 0.9.7 (for PHP 5.2) API documentation generated by ApiGen 2.3.0