group behaviors

This commit is contained in:
Jean-Christian Paul Denis 2022-12-25 21:34:36 +01:00
parent 38e38b74bf
commit d657d5b0e2
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -28,54 +28,20 @@ if (!dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([
}
# Admin behaviors
dcCore::app()->addBehavior(
'adminPostsActions',
['adminBehaviorPostExpired', 'adminPostsActions']
);
dcCore::app()->addBehavior(
'adminPagesActions',
['adminBehaviorPostExpired', 'adminPostsActions']
);
dcCore::app()->addBehavior(
'adminPostHeaders',
['adminBehaviorPostExpired', 'adminPostHeaders']
);
dcCore::app()->addBehavior(
'adminPageHeaders',
['adminBehaviorPostExpired', 'adminPostHeaders']
);
dcCore::app()->addBehavior(
'adminPostFormItems',
['adminBehaviorPostExpired', 'adminPostFormItems']
);
dcCore::app()->addBehavior(
'adminPageFormItems',
['adminBehaviorPostExpired', 'adminPostFormItems']
);
dcCore::app()->addBehavior(
'adminBeforePostDelete',
['adminBehaviorPostExpired', 'adminBeforePostDelete']
);
dcCore::app()->addBehavior(
'adminBeforePageDelete',
['adminBehaviorPostExpired', 'adminBeforePostDelete']
);
dcCore::app()->addBehavior(
'adminAfterPostUpdate',
['adminBehaviorPostExpired', 'adminAfterPostSave']
);
dcCore::app()->addBehavior(
'adminAfterPageUpdate',
['adminBehaviorPostExpired', 'adminAfterPostSave']
);
dcCore::app()->addBehavior(
'adminAfterPostCreate',
['adminBehaviorPostExpired', 'adminAfterPostSave']
);
dcCore::app()->addBehavior(
'adminAfterPageCreate',
['adminBehaviorPostExpired', 'adminAfterPostSave']
);
dcCore::app()->addBehaviors([
'adminPostsActions' => ['adminBehaviorPostExpired', 'adminPostsActions'],
'adminPagesActions' => ['adminBehaviorPostExpired', 'adminPostsActions'],
'adminPostHeaders' => ['adminBehaviorPostExpired', 'adminPostHeaders'],
'adminPageHeaders' => ['adminBehaviorPostExpired', 'adminPostHeaders'],
'adminPostFormItems' => ['adminBehaviorPostExpired', 'adminPostFormItems'],
'adminPageFormItems' => ['adminBehaviorPostExpired', 'adminPostFormItems'],
'adminBeforePostDelete' => ['adminBehaviorPostExpired', 'adminBeforePostDelete'],
'adminBeforePageDelete' => ['adminBehaviorPostExpired', 'adminBeforePostDelete'],
'adminAfterPostUpdate' => ['adminBehaviorPostExpired', 'adminAfterPostSave'],
'adminAfterPageUpdate' => ['adminBehaviorPostExpired', 'adminAfterPostSave'],
'adminAfterPostCreate' => ['adminBehaviorPostExpired', 'adminAfterPostSave'],
'adminAfterPageCreate' => ['adminBehaviorPostExpired', 'adminAfterPostSave'],
]);
/**
* @ingroup DC_PLUGIN_POSTEXPIRED