mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°6043 - Booking: Add prerequisites in iTop core - CRUD extensibility (#520)
This commit is contained in:
47
sources/Service/TemporaryObjects/TemporaryObjectsEvents.php
Normal file
47
sources/Service/TemporaryObjects/TemporaryObjectsEvents.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2023 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
namespace Combodo\iTop\Service\TemporaryObjects;
|
||||
|
||||
use Combodo\iTop\Service\Events\Description\EventDataDescription;
|
||||
use Combodo\iTop\Service\Events\Description\EventDescription;
|
||||
use Combodo\iTop\Service\Events\EventService;
|
||||
use Combodo\iTop\Service\Events\iEventServiceSetup;
|
||||
|
||||
class TemporaryObjectsEvents implements iEventServiceSetup
|
||||
{
|
||||
|
||||
// Startup events
|
||||
const TEMPORARY_OBJECT_EVENT_CONFIRM_CREATE = 'TEMPORARY_OBJECT_EVENT_CONFIRM_CREATE';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function RegisterEventsAndListeners()
|
||||
{
|
||||
EventService::RegisterEvent(new EventDescription(
|
||||
self::TEMPORARY_OBJECT_EVENT_CONFIRM_CREATE,
|
||||
[
|
||||
'cmdbAbstractObject' => 'cmdbAbstractObject',
|
||||
],
|
||||
'The MetaModel is fully started',
|
||||
'',
|
||||
[
|
||||
new EventDataDescription(
|
||||
'object',
|
||||
'The object concerned by the creation confirmation',
|
||||
'DBObject',
|
||||
),
|
||||
new EventDataDescription(
|
||||
'debug_info',
|
||||
'Debug string',
|
||||
'string',
|
||||
),
|
||||
],
|
||||
'application'));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user