Provides features for merging object properties recursively with parent classes.
_mergeProperty(string $property, array $parentClasses, array $options)
Merge a single property with the values declared in all parent classes.
The name of the property being merged.
An array of classes you want to merge with.
Options for merging the property, see _mergeVars()
_mergePropertyData(array $current, array $parent, bool $isAssoc)
Merge each of the keys in a property together.
The current merged value.
The parent class' value.
Whether or not the merging should be done in associative mode.
The updated value.
_mergeVars(array $properties, array $options)
Merge the list of $properties with all parent classes of the current class.
associative- A list of properties that should be treated as associative arrays. Properties in this list will be passed through Hash::normalize() before merging.
An array of properties and the merge strategy for them.
The options to use when merging properties.
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.