Class ObjectMixin (namespace Nette)


Nette\Object behaviour mixin.


Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /ObjectMixin.php (line 21)
Public Method Summary
ObjectMixin
Static class - cannot be instantiated.
static mixed
call (string $_this, array $name, $args)
Call to undefined method.
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 31

__construct

public ObjectMixin __construct ()

Static class - cannot be instantiated.

Output
ObjectMixin  

line 46

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 82

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 167

has

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

Is property defined?

Input
string $_this property name
$name
Output
bool  

line 129

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