Documentation

InstanceCopy
in package

InstanceCopy ist für die Erzeugung echten rekrusiven Kopien von Objekten gedacht.

Da die clone Funktion nur das Objekt, aber keine Objekte in Arrays usw. klont kommt InstanceCopy zum Einsatz.

Tags
category

Framework

author

schukai GmbH [email protected]

license

http://alvine.io/license/ Licence

link

Alvine

see
SerializableImplementation
since
20150921

Table of Contents

Properties

$hashMap  : array
$instance  : mixed

Methods

__construct()  : mixed
Objekt
cloneInstance()  : mixed
Kopie der Instanz herstellen
getClone()  : mixed
Kopie der Instanz herstellen
cloneObject()  : mixed
Objekt klonen
getClonedArray()  : array
Array kopieren
getClonedObject()  : object
Objekt prüfen
getRecursiveCopy()  : mixed
Rekursive Kopie anfertigen
setClonedObjectPropertyValue()  : InstanceCopy
Properties clonen

Properties

Methods

__construct()

Objekt

public __construct(mixed $instance) : mixed
Parameters
$instance : mixed

cloneInstance()

Kopie der Instanz herstellen

public cloneInstance() : mixed
Return values
mixed

getClone()

Kopie der Instanz herstellen

public getClone() : mixed
Return values
mixed

cloneObject()

Objekt klonen

protected cloneObject(ReflectionObject $reflectedObject, string $objectHash, object $object) : mixed
Parameters
$reflectedObject : ReflectionObject
$objectHash : string
$object : object
Return values
mixed

getClonedArray()

Array kopieren

protected getClonedArray(array $array) : array
Parameters
$array : array
Return values
array

getClonedObject()

Objekt prüfen

protected getClonedObject(object $object[, boolean $cloneRoot = true ]) : object
Parameters
$object : object
$cloneRoot : boolean = true
Tags
throws
CloneNotSupportedException
Return values
object

        
On this page

Search results