Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • Compiler
  • Engine
  • HtmlNode
  • MacroNode
  • MacroTokens
  • Object
  • Parser
  • PhpWriter
  • Token

Interfaces

  • ILoader
  • IMacro

Exceptions

  • CompileException
  • RegexpException
  • RuntimeException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Latte (https://latte.nette.org)
 5:  * Copyright (c) 2008 David Grudl (https://davidgrudl.com)
 6:  */
 7: 
 8: namespace Latte;
 9: 
10: 
11: /**
12:  * Object is the ultimate ancestor of all instantiable classes.
13:  *
14:  * @author     David Grudl
15:  */
16: abstract class Object
17: {
18: 
19:     /**
20:      * Call to undefined method.
21:      * @throws \LogicException
22:      */
23:     public function __call($name, $args)
24:     {
25:         $class = method_exists($this, $name) ? 'parent' : get_class($this);
26:         throw new \LogicException(sprintf('Call to undefined method %s::%s().', $class, $name));
27:     }
28: 
29: 
30:     /**
31:      * Access to undeclared property.
32:      * @throws \LogicException
33:      */
34:     public function &__get($name)
35:     {
36:         throw new \LogicException(sprintf('Cannot read an undeclared property %s::$%s.', get_class($this), $name));
37:     }
38: 
39: 
40:     /**
41:      * Access to undeclared property.
42:      * @throws \LogicException
43:      */
44:     public function __set($name, $value)
45:     {
46:         throw new \LogicException(sprintf('Cannot write to an undeclared property %s::$%s.', get_class($this), $name));
47:     }
48: 
49: 
50:     /**
51:      * @return bool
52:      */
53:     public function __isset($name)
54:     {
55:         return FALSE;
56:     }
57: 
58: 
59:     /**
60:      * Access to undeclared property.
61:      * @throws \LogicException
62:      */
63:     public function __unset($name)
64:     {
65:         throw new \LogicException(sprintf('Cannot unset the property %s::$%s.', get_class($this), $name));
66:     }
67: 
68: }
69: 
Nette 2.2 API documentation generated by ApiGen 2.8.0