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

Classes

Interfaces

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class ClassReflection

Reports information about a class.

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

Parameters

$class
string|object

Returns

ClassReflection
public
# __toString( )

Overrides

ReflectionClass::__toString()
public boolean
# hasEventProperty( $name )

Returns

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

Adds a method to class.

Adds a method to class.

Parameters

$name
string
method name
$callback
mixed
callable

Returns

ClassReflection
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 MethodReflection|null
# getConstructor( )

Returns

MethodReflection|null

Overrides

ReflectionClass::getConstructor()
public ExtensionReflection|null
# getExtension( )

Returns

ExtensionReflection|null

Overrides

ReflectionClass::getExtension()
public ClassReflection[]
# getInterfaces( )

Returns

ClassReflection[]

Overrides

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

Returns

MethodReflection

Overrides

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

Returns

MethodReflection[]

Overrides

ReflectionClass::getMethods()
public ClassReflection|null
# getParentClass( )

Returns

ClassReflection|null

Overrides

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

Returns

PropertyReflection[]

Overrides

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

Returns

PropertyReflection

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 IAnnotation[][]
# getAnnotations( )

Returns all annotations.

Returns all annotations.

Returns

IAnnotation[][]
public string
# getDescription( )

Returns value of annotation 'description'.

Returns value of annotation 'description'.

Returns

string
public ClassReflection
# getReflection( )

Returns

ClassReflection
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
Magic properties summary
public read-only MethodReflection $constructor
#
public read-only ExtensionReflection $extension
#
public read-only ClassReflection $parentClass
#
public read-only string $description
#
public read-only string $name
#
public read-only boolean $internal
#
public read-only boolean $userDefined
#
public read-only boolean $instantiable
#
public read-only string $fileName
#
public read-only integer $startLine
#
public read-only integer $endLine
#
public read-only string $docComment
#
public read-only boolean $interface
#
public read-only boolean $abstract
#
public read-only boolean $final
#
public read-only integer $modifiers
#
public read-only array $staticProperties
#
public read-only array $defaultProperties
#
public read-only boolean $iterateable
#
public read-only string $extensionName
#
public read-only string $namespaceName
#
public read-only string $shortName
#
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0