Class ObjectMixin (namespace Nette)


Nette\Object behaviour mixin.


Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /ObjectMixin.php (line 36)
Public Method Summary
ObjectMixin
Static class - cannot be instantiated.
static mixed
call (string $_this, array $name, $args)
Call to undefined method.
static mixed
extensionMethod (string $class, string $name, [mixed $callback = NULL])
Adding method to class.
static & mixed
get (string $_this, $name)
Returns property value.
static bool
has (string $_this, $name)
Is property defined?
static void
set (string $_this, mixed $name, $value)
Sets value of a property.

Method Details

line 49

__construct

public ObjectMixin __construct ()

Static class - cannot be instantiated.

Output
ObjectMixin  

line 64

call

public static mixed call (string $_this, array $name, $args)

Call to undefined method.

Input
string $_this method name
array $name arguments
$args
Output
mixed  
Throws
throws MemberAccessException

line 110

extensionMethod

public static mixed extensionMethod (string $class, string $name, [mixed $callback = NULL])

Adding method to class.

Input
string $class class name
string $name method name
mixed $callback callback or closure
Output
mixed  

line 172

get

public static mixed & get (string $_this, $name)

Returns property value.

Input
string $_this property name
$name
Output
& mixed property value
Throws
throws MemberAccessException if the property is not defined.

line 257

has

public static bool has (string $_this, $name)

Is property defined?

Input
string $_this property name
$name
Output
bool  

line 219

set

public static void set (string $_this, mixed $name, $value)

Sets value of a property.

Input
string $_this property name
mixed $name property value
$value
Output
void  
Throws
throws MemberAccessException if the property is not defined or is read-only