Maslosoft Mangan API
Class ParentChildTrashHandlers
OwneredTrashHandlers Use this class to create trash handlers for owned items.
This class provides event handlers to properly manage trash, however it is optional, so owned and trashable can be handled by some custom methods. These handles are not automatically registered.
NOTE: Register only once per type, or it will not work properly.
Namespace: Maslosoft\Mangan\Helpers
Author: Piotr Maselkowski
Located at Helpers/ParentChildTrashHandlers.php
Author: Piotr Maselkowski
Located at Helpers/ParentChildTrashHandlers.php
Methods summary
public
|
#
registerParent( Maslosoft\Addendum\Interfaces\AnnotatedInterface|string $parent, string $childClass )
Register event handlers for parent of parent-child relation. |
public
|
#
registerChild( Maslosoft\Addendum\Interfaces\AnnotatedInterface|string $child, string $parentClass )
Register event handlers for child item of parent-child relation. |
API documentation generated by ApiGen