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

  • ArrayHash
  • ArrayList
  • Arrays
  • Callback
  • DateTime
  • FileSystem
  • Finder
  • Html
  • Image
  • Json
  • ObjectHelpers
  • ObjectMixin
  • Paginator
  • Random
  • Reflection
  • SafeStream
  • Strings
  • TokenIterator
  • Tokenizer
  • Validators

Interfaces

  • IHtmlString

Exceptions

  • AssertionException
  • ImageException
  • JsonException
  • RegexpException
  • TokenizerException
  • UnknownImageFileException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class ObjectMixin

Nette\Object behaviour mixin.

Nette\Utils\ObjectMixin uses Nette\StaticClass
Namespace: Nette\Utils
Deprecated
Located at Utils/ObjectMixin.php
Methods summary
public static
# strictGet( $class, $name )
public static
# strictSet( $class, $name )
public static
# strictCall( $class, $method, $additionalMethods = [] )
public static
# strictStaticCall( $class, $method )
public static mixed
# call( object $_this, string $name, array $args )

__call() implementation.

__call() implementation.

Parameters

$_this
$name
$args

Returns

mixed
mixed

Throws

Nette\MemberAccessException
MemberAccessException
public static
# callStatic( string $class, string $method, array $args )

__callStatic() implementation.

__callStatic() implementation.

Parameters

$class
$method
$args

Throws

Nette\MemberAccessException
MemberAccessException
public static mixed &
# get( object $_this, string $name )

__get() implementation.

__get() implementation.

Parameters

$_this
$name
name

Returns

mixed
property value

Throws

Nette\MemberAccessException
if the property is not defined.
public static
# set( object $_this, string $name, mixed $value )

__set() implementation.

__set() implementation.

Parameters

$_this
$name
name
$value
value

Throws

Nette\MemberAccessException
if the property is not defined or is read-only
public static
# remove( object $_this, string $name )

__unset() implementation.

__unset() implementation.

Parameters

$_this
$name
name

Throws

Nette\MemberAccessException
MemberAccessException
public static boolean
# has( object $_this, string $name )

__isset() implementation.

__isset() implementation.

Parameters

$_this
$name
name

Returns

boolean
bool
public static
# getMagicProperties( $class )
public static
# getMagicProperty( $class, $name )

Internal

public static array
# getMagicMethods( $class )

Returns array of magic methods defined by annotation @method.

Returns array of magic methods defined by annotation @method.

Returns

array
array
public static boolean
# checkType( & $val, $type )

Finds whether a variable is of expected type and do non-data-loss conversion.

Finds whether a variable is of expected type and do non-data-loss conversion.

Returns

boolean
bool

Internal

public static
# setExtensionMethod( string $class, string $name, mixed $callback )

Adds a method to class.

Adds a method to class.

Parameters

$class
$name
$callback
callable
public static mixed
# getExtensionMethod( string $class, string $name )

Returns extension method.

Returns extension method.

Parameters

$class
$name

Returns

mixed
mixed
public static array
# getExtensionMethods( string $class )

Returns extension methods.

Returns extension methods.

Parameters

$class

Returns

array
array
public static
# getSuggestion( array $possibilities, $value )
public static
# hasProperty( $class, $name )
public static array &
# getMethods( $class )

Returns array of public (static, non-static and magic) methods.

Returns array of public (static, non-static and magic) methods.

Returns

array
array

Internal

public static
# getSource( )

Internal

Methods used from Nette\StaticClass
__callStatic(), __construct()
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0