Namespaces

  • 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

  • Annotation
  • AnnotationsParser
  • ClassType
  • Extension
  • GlobalFunction
  • Method
  • Parameter
  • Property

Interfaces

  • IAnnotation
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (http://nette.org)
 5:  *
 6:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  */
11: 
12: namespace Nette\Reflection;
13: 
14: use Nette,
15:     Nette\ObjectMixin;
16: 
17: 
18: /**
19:  * Reports information about a extension.
20:  *
21:  * @author     David Grudl
22:  */
23: class Extension extends \ReflectionExtension
24: {
25: 
26:     public function __toString()
27:     {
28:         return 'Extension ' . $this->getName();
29:     }
30: 
31: 
32:     /********************* Reflection layer ****************d*g**/
33: 
34: 
35:     public function getClasses()
36:     {
37:         $res = array();
38:         foreach (parent::getClassNames() as $val) {
39:             $res[$val] = new ClassType($val);
40:         }
41:         return $res;
42:     }
43: 
44: 
45:     public function getFunctions()
46:     {
47:         foreach ($res = parent::getFunctions() as $key => $val) {
48:             $res[$key] = new GlobalFunction($key);
49:         }
50:         return $res;
51:     }
52: 
53: 
54:     /********************* Nette\Object behaviour ****************d*g**/
55: 
56: 
57:     /**
58:      * @return ClassType
59:      */
60:     public static function getReflection()
61:     {
62:         return new ClassType(get_called_class());
63:     }
64: 
65: 
66:     public function __call($name, $args)
67:     {
68:         return ObjectMixin::call($this, $name, $args);
69:     }
70: 
71: 
72:     public function &__get($name)
73:     {
74:         return ObjectMixin::get($this, $name);
75:     }
76: 
77: 
78:     public function __set($name, $value)
79:     {
80:         return ObjectMixin::set($this, $name, $value);
81:     }
82: 
83: 
84:     public function __isset($name)
85:     {
86:         return ObjectMixin::has($this, $name);
87:     }
88: 
89: 
90:     public function __unset($name)
91:     {
92:         ObjectMixin::remove($this, $name);
93:     }
94: 
95: }
96: 
Nette Framework 2.0.11 API API documentation generated by ApiGen 2.8.0