k1low / darumaotoshi
"Archive and delete" (slide delete) plugin for CakePHP 3
Package info
Type:cakephp-plugin
pkg:composer/k1low/darumaotoshi
Fund package maintenance!
v1.1.0
2016-08-29 09:25 UTC
Requires
- php: >=5.4.16
- cakephp/cakephp: ~3.0
Requires (Dev)
- friendsofcake/cakephp-test-utilities: dev-master
- phpunit/phpunit: *
This package is auto-updated.
Last update: 2026-03-06 12:23:54 UTC
README
"Archive and delete" (slide delete) plugin for CakePHP 3
Installation
$ composer require k1low/darumaotoshi
Enable plugin
$ bin/cake plugin load Darumaotoshi
Load required database table
$ bin/cake migrations migrate --plugin Darumaotoshi
Usage
// in the initialize() method $this->addBehavior('Darumaotoshi.Darumaotoshi');
Cascading deletion
If you'd like to have related records marked as trashed when deleting a parent item, you can just attach the behavior to the related table classes, and set the 'dependent' => true, 'cascadeCallbacks' => true options in the table relationships.
Code References
UseMuffin/Trash
Copyright (c) 2015, Use Muffin and licensed under The MIT License.
License
under The MIT License.