<?php
defined('TYPO3') or die();

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'CalendarList',
    'Reservations: List of Calendars'
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'PublicCalendar',
    'Reservations: Public Calendar'
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'Ajax',
    'Reservations: Ajax'
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'EventTodo',
    'Reservations: Events Approval List'
);


\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'Overview',
    'Reservations: Overview'
);


\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'Alarm',
    'Reservations: Alarm'
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'EventList',
    'Reservations: Event List'
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'FeUserManagement',
    'Reservations: User Management'
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'LocationManagement',
    'Reservations: Location Management'
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'LocationList',
    'Reservations: Location List'
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'MyReservations',
    'Reservations: My Reservations'
);

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
    'IgReservations',
    'Statistics',
    'Reservations: Statistics'
);


$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['igreservations_publiccalendar'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('igreservations_publiccalendar', 'FILE:EXT:ig_reservations/Configuration/FlexForms/flexform_publiccalendar.xml');

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['igreservations_eventlist'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('igreservations_eventlist', 'FILE:EXT:ig_reservations/Configuration/FlexForms/flexform_eventlist.xml');

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['igreservations_locationlist'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('igreservations_locationlist', 'FILE:EXT:ig_reservations/Configuration/FlexForms/flexform_locationlist.xml');

//$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['igreservations_statistics'] = 'pi_flexform';
//\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('igreservations_statistics', 'FILE:EXT:ig_reservations/Configuration/FlexForms/flexform_statistics.xml');
