Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • Component
  • ComponentReflection
  • Control
  • Form
  • Link
  • MethodReflection
  • Multiplier
  • Presenter

Interfaces

  • IRenderable
  • ISignalReceiver
  • IStatePersistent
  • ITemplate
  • ITemplateFactory

Exceptions

  • BadSignalException
  • InvalidLinkException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 6:  */
 7: 
 8: namespace Nette\Application\UI;
 9: 
10: use Nette;
11: use Nette\Reflection\Method;
12: 
13: 
14: /**
15:  * @internal
16:  */
17: class MethodReflection extends \ReflectionMethod
18: {
19:     use Nette\SmartObject;
20: 
21:     /**
22:      * Has method specified annotation?
23:      * @param  string
24:      * @return bool
25:      */
26:     public function hasAnnotation($name)
27:     {
28:         return (bool) ComponentReflection::parseAnnotation($this, $name);
29:     }
30: 
31: 
32:     /**
33:      * Returns an annotation value.
34:      * @param  string
35:      * @return mixed
36:      */
37:     public function getAnnotation($name)
38:     {
39:         $res = ComponentReflection::parseAnnotation($this, $name);
40:         return $res ? end($res) : null;
41:     }
42: 
43: 
44:     public function __toString()
45:     {
46:         trigger_error(__METHOD__ . ' is deprecated.', E_USER_DEPRECATED);
47:         return parent::getDeclaringClass()->getName() . '::' . $this->getName() . '()';
48:     }
49: 
50: 
51:     public function __get($name)
52:     {
53:         trigger_error("getMethod('{$this->getName()}')->$name is deprecated.", E_USER_DEPRECATED);
54:         return (new Method(parent::getDeclaringClass()->getName(), $this->getName()))->$name;
55:     }
56: 
57: 
58:     public function __call($name, $args)
59:     {
60:         trigger_error("getMethod('{$this->getName()}')->$name() is deprecated, use Nette\\Reflection\\Method::from(\$presenter, '{$this->getName()}')->$name()", E_USER_DEPRECATED);
61:         return call_user_func_array([new Method(parent::getDeclaringClass()->getName(), $this->getName()), $name], $args);
62:     }
63: }
64: 
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0