Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

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

Interfaces

  • IAnnotation
  • Overview
  • Package
  • Class
  • Tree

Class NClassReflection

Reports information about a class.

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

Parameters

$class
string|object

Returns

NClassReflection
public
# __toString( )

Overrides

ReflectionClass::__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 boolean
# is( string $type )

Parameters

$type
string

Returns

boolean
public NMethodReflection
# getConstructor( )

Returns

NMethodReflection

Overrides

ReflectionClass::getConstructor
public NExtensionReflection
# getExtension( )

Returns

NExtensionReflection

Overrides

ReflectionClass::getExtension
public
# getInterfaces( )

Overrides

ReflectionClass::getInterfaces
public NMethodReflection
# getMethod( $name )

Returns

NMethodReflection

Overrides

ReflectionClass::getMethod
public
# getMethods( $filter = -1 )

Overrides

ReflectionClass::getMethods
public NClassReflection
# getParentClass( )

Returns

NClassReflection

Overrides

ReflectionClass::getParentClass
public
# getProperties( $filter = -1 )

Overrides

ReflectionClass::getProperties
public NPropertyReflection
# getProperty( $name )

Returns

NPropertyReflection

Overrides

ReflectionClass::getProperty
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 string
# getDescription( )

Returns value of annotation 'description'.

Returns value of annotation 'description'.

Returns

string
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 2.0.1 (for PHP 5.2, prefixed) API API documentation generated by ApiGen 2.7.0