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

  • Configurator
  • Framework
  • LegacyObject

Traits

  • SmartObject
  • StaticClass

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FileNotFoundException
  • InvalidArgumentException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • OutOfRangeException
  • StaticClassException
  • UnexpectedValueException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Trait SmartObject

Strict class for better experience.

  • 'did you mean' hints
  • access to undeclared members throws exceptions
  • support for @property annotations
  • support for calling event handlers stored in $onEvent via onEvent()
  • compatible with Nette\Object

Direct Known Users

Nette\Application\Application, Nette\Application\LinkGenerator, Nette\Application\Routers\CliRouter, Nette\Security\Identity, Nette\Security\Permission, Nette\Security\SimpleAuthenticator, Nette\Security\User, Nette\Utils\ArrayList, Nette\Utils\DateTime, Nette\Utils\Finder, Nette\Utils\Html, Nette\Utils\Image, Nette\Utils\Paginator, Nette\Application\Routers\Route, Tracy\Bridges\Nette\MailSender, Nette\Application\Routers\SimpleRouter, Nette\Application\UI\ComponentReflection, Nette\Application\UI\Link, Nette\Application\UI\MethodReflection, Nette\Bridges\ApplicationLatte\SnippetBridge, Nette\Bridges\ApplicationLatte\Template, Nette\Bridges\ApplicationLatte\TemplateFactory, Nette\Bridges\ApplicationTracy\RoutingPanel, Nette\Application\PresenterFactory, Nette\Bridges\CacheLatte\CacheMacro, Nette\Bridges\DatabaseTracy\ConnectionPanel, Nette\Bridges\DITracy\ContainerPanel, Nette\Bridges\HttpTracy\SessionPanel, Nette\Bridges\SecurityTracy\UserPanel, Nette\Caching\Cache, Nette\Caching\OutputHelper, Nette\Caching\Storages\DevNullStorage, Nette\Caching\Storages\FileStorage, Nette\Caching\Storages\MemcachedStorage, Nette\Application\Request, Nette\Caching\Storages\MemoryStorage, Nette\Caching\Storages\NewMemcachedStorage, Nette\Caching\Storages\SQLiteJournal, Nette\Caching\Storages\SQLiteStorage, Nette\ComponentModel\Component, Nette\Configurator, Nette\Database\Connection, Nette\Database\Context, Nette\Database\Conventions\StaticConventions, Nette\Database\Drivers\MsSqlDriver, Nette\Application\Responses\CallbackResponse, Nette\Database\Drivers\MySqlDriver, Nette\Database\Drivers\OciDriver, Nette\Database\Drivers\OdbcDriver, Nette\Database\Drivers\PgSqlDriver, Nette\Database\Drivers\SqliteDriver, Nette\Database\Drivers\SqlsrvDriver, Nette\Database\ResultSet, Nette\Database\SqlLiteral, Nette\Database\SqlPreprocessor, Nette\Database\Structure, Nette\Application\Responses\FileResponse, Nette\Database\Table\Selection, Nette\Database\Table\SqlBuilder, Nette\DI\Compiler, Nette\DI\CompilerExtension, Nette\DI\Config\Adapters\IniAdapter, Nette\DI\Config\Adapters\NeonAdapter, Nette\DI\Config\Adapters\PhpAdapter, Nette\DI\Config\Loader, Nette\DI\Container, Nette\DI\ContainerBuilder, Nette\Application\Responses\ForwardResponse, Nette\DI\ContainerLoader, Nette\DI\DependencyChecker, Nette\DI\ServiceDefinition, Nette\DI\Statement, Nette\Forms\ControlGroup, Nette\Forms\Rendering\DefaultFormRenderer, Nette\Forms\Rule, Nette\Forms\Rules, Nette\Http\Context, Nette\Http\FileUpload, Nette\Application\Responses\JsonResponse, Nette\Http\Request, Nette\Http\RequestFactory, Nette\Http\Response, Nette\Http\Session, Nette\Http\SessionSection, Nette\Http\Url, Nette\Http\UserStorage, Nette\Iterators\CachingIterator, Nette\Loaders\RobotLoader, Nette\Mail\FallbackMailer, Nette\Application\Responses\RedirectResponse, Nette\Mail\MimePart, Nette\Mail\SendmailMailer, Nette\Mail\SmtpMailer, Nette\PhpGenerator\ClassType, Nette\PhpGenerator\Closure, Nette\PhpGenerator\Constant, Nette\PhpGenerator\Factory, Nette\PhpGenerator\GlobalFunction, Nette\PhpGenerator\Method, Nette\PhpGenerator\Parameter, Nette\Application\Responses\TextResponse, Nette\PhpGenerator\PhpFile, Nette\PhpGenerator\PhpNamespace, Nette\PhpGenerator\Property, Nette\Reflection\Annotation, Nette\Reflection\ClassType, Nette\Reflection\Extension, Nette\Reflection\GlobalFunction, Nette\Reflection\Method, Nette\Reflection\Parameter, Nette\Reflection\Property

Indirect Known Users

Nette\Application\Routers\RouteList, Nette\Application\UI\Component, Nette\Bridges\DatabaseDI\DatabaseExtension, Nette\Bridges\FormsDI\FormsExtension, Nette\Bridges\HttpDI\HttpExtension, Nette\Bridges\HttpDI\SessionExtension, Nette\Bridges\MailDI\MailExtension, Nette\Bridges\ReflectionDI\ReflectionExtension, Nette\Bridges\SecurityDI\SecurityExtension, Nette\ComponentModel\Container, Nette\Database\Drivers\Sqlite2Driver, Nette\Database\Table\GroupedSelection, Nette\Application\UI\Control, Nette\DI\Extensions\ConstantsExtension, Nette\DI\Extensions\DecoratorExtension, Nette\DI\Extensions\DIExtension, Nette\DI\Extensions\ExtensionsExtension, Nette\DI\Extensions\InjectExtension, Nette\DI\Extensions\PhpExtension, Nette\Forms\Container, Nette\Forms\Controls\BaseControl, Nette\Forms\Controls\Button, Nette\Forms\Controls\Checkbox, Nette\Application\UI\Form, Nette\Forms\Controls\CheckboxList, Nette\Forms\Controls\ChoiceControl, Nette\Forms\Controls\CsrfProtection, Nette\Forms\Controls\HiddenField, Nette\Forms\Controls\ImageButton, Nette\Forms\Controls\MultiChoiceControl, Nette\Forms\Controls\MultiSelectBox, Nette\Forms\Controls\RadioList, Nette\Forms\Controls\SelectBox, Nette\Forms\Controls\SubmitButton, Nette\Application\UI\Multiplier, Nette\Forms\Controls\TextArea, Nette\Forms\Controls\TextBase, Nette\Forms\Controls\TextInput, Nette\Forms\Controls\UploadControl, Nette\Forms\Form, Nette\Http\UrlScript, Nette\Mail\Message, Tracy\Bridges\Nette\TracyExtension, Nette\Application\UI\Presenter, Nette\Bridges\ApplicationDI\ApplicationExtension, Nette\Bridges\ApplicationDI\LatteExtension, Nette\Bridges\ApplicationDI\RoutingExtension, Nette\Bridges\CacheDI\CacheExtension
Namespace: Nette
Located at Utils/SmartObject.php
Methods summary
public mixed
# __call( $name, $args )

Returns

mixed
mixed

Throws

Nette\MemberAccessException
MemberAccessException
public static
# __callStatic( $name, $args )

Throws

Nette\MemberAccessException
MemberAccessException
public mixed &
# __get( $name )

Returns

mixed
property value

Throws

Nette\MemberAccessException
if the property is not defined.
public
# __set( $name, $value )

Throws

Nette\MemberAccessException
if the property is not defined or is read-only
public
# __unset( $name )

Throws

Nette\MemberAccessException
MemberAccessException
public boolean
# __isset( $name )

Returns

boolean
bool
public static Nette\Reflection\ClassType|ReflectionClass
# getReflection( )

Deprecated

Returns

Nette\Reflection\ClassType|ReflectionClass
Reflection\ClassType|\ReflectionClass
public static mixed
# extensionMethod( $name, $callback = null )

Deprecated

use Nette\Utils\ObjectMixin::setExtensionMethod()

Returns

mixed
mixed
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0