芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/cms.mgaplay.com.br/lib/Listener/OnUserDelete/OnUserDeleteInterface.php
. */ namespace Xibo\Listener\OnUserDelete; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Xibo\Entity\User; use Xibo\Event\UserDeleteEvent; interface OnUserDeleteInterface { /** * Listen to the UserDeleteEvent * * @param UserDeleteEvent $event * @return mixed */ public function __invoke(UserDeleteEvent $event, $eventName, EventDispatcherInterface $dispatcher); /** * Delete Objects owned by the User we want to delete * * @param User $user * @return mixed */ public function deleteChildren(User $user, EventDispatcherInterface $dispatcher, User $systemUser); /** * Reassign objects to a new User * * @param User $user * @param User $newUser * @return mixed */ public function reassignAllTo(User $user, User $newUser, User $systemUser); /** * Count Children, return count of objects owned by the User we want to delete * * @param User $user * @return mixed */ public function countChildren(User $user); }