PHP Interface Inpsyde_Property_List_Interface

Author: toscho
Afficher le fichier Open project: inpsyde/multilingual-press Interface Usage Examples

Méthodes publiques

Méthode Description
__get ( string $name ) : mixed Wrapper for get()
__isset ( string $name ) : boolean Wrapper for has().
__set ( string $name, mixed $value ) Wrapper for set().
delete ( string $name ) : void | Inpsyde_Property_List Delete a key and set its name to the $deleted list.
freeze ( ) : Inpsyde_Property_List_Interface Lock write access to this object's instance. Forever.
get ( string $name ) : mixed Get a value.
has ( string $name ) : boolean Check if property exists.
has_parent ( ) : boolean Test if the current instance has a parent.
is_frozen ( ) : boolean Test from outside if an object has been frozen.
set ( string $name, mixed $value ) : void | Inpsyde_Property_List Set new value.
set_parent ( Inpsyde_Property_List_Interface $object ) : Inpsyde_Property_List_Interface Set parent object. Properties of this object will be inherited.

Method Details

__get() public méthode

Wrapper for get()
See also: get()
public __get ( string $name ) : mixed
$name string
Résultat mixed

__isset() public méthode

Wrapper for has().
See also: has()
public __isset ( string $name ) : boolean
$name string
Résultat boolean

__set() public méthode

Wrapper for set().
See also: set()
public __set ( string $name, mixed $value )
$name string
$value mixed

delete() public méthode

Further calls to has() and get() will not take this property into account.
public delete ( string $name ) : void | Inpsyde_Property_List
$name string
Résultat void | Inpsyde_Property_List

freeze() public méthode

Lock write access to this object's instance. Forever.
public freeze ( ) : Inpsyde_Property_List_Interface
Résultat Inpsyde_Property_List_Interface $this

get() public méthode

Might be taken from parent object.
public get ( string $name ) : mixed
$name string
Résultat mixed

has() public méthode

Due to syntax restrictions in PHP we cannot name this "isset()".
public has ( string $name ) : boolean
$name string
Résultat boolean

has_parent() public méthode

Test if the current instance has a parent.
public has_parent ( ) : boolean
Résultat boolean

is_frozen() public méthode

Test from outside if an object has been frozen.
public is_frozen ( ) : boolean
Résultat boolean

set() public méthode

Set new value.
public set ( string $name, mixed $value ) : void | Inpsyde_Property_List
$name string
$value mixed
Résultat void | Inpsyde_Property_List

set_parent() public méthode

Set parent object. Properties of this object will be inherited.
public set_parent ( Inpsyde_Property_List_Interface $object ) : Inpsyde_Property_List_Interface
$object Inpsyde_Property_List_Interface
Résultat Inpsyde_Property_List_Interface