Commit b88b4597 authored by Administrator's avatar Administrator

Drop TYPO3 8.7 support, because of changed new domain model validation...

Drop TYPO3 8.7 support, because of changed new domain model validation annotation format, required since v10; Move icon, inline help definition to there right place; Fix deprecated language label paths in TCA;
parent 575e1489
<?php
namespace MediaEssenz\MeGoogleCalendar\Domain\Model;
use TYPO3\CMS\Extbase\Annotation as Extbase;
/***************************************************************
* Copyright notice
*
......@@ -35,128 +38,130 @@ namespace MediaEssenz\MeGoogleCalendar\Domain\Model;
class Calendar extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
/**
* title
*
* @var string
* @validate NotEmpty
*/
protected $title;
/**
* @var string
* @validate NotEmpty
*/
protected $googleCalendarApiKey;
/**
* @var string
* @validate NotEmpty
*/
protected $googleCalendarId;
/**
* css
*
* @var string
*/
protected $css;
/**
* fe_groups
*
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup>
*/
protected $feGroups;
/**
* Returns the title
*
* @return string $title
*/
public function getTitle()
{
return $this->title;
}
/**
* Sets the title
*
* @param string $title
* @return void
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getGoogleCalendarApiKey()
{
return $this->googleCalendarApiKey;
}
/**
* @param string $googleCalendarApiKey
*/
public function setGoogleCalendarApiKey($googleCalendarApiKey)
{
$this->googleCalendarApiKey = $googleCalendarApiKey;
}
/**
* @return string
*/
public function getGoogleCalendarId()
{
return $this->googleCalendarId;
}
/**
* @param string $googleCalendarId
*/
public function setGoogleCalendarId($googleCalendarId)
{
$this->googleCalendarId = $googleCalendarId;
}
/**
* Returns the css
*
* @return string $css
*/
public function getCss()
{
return $this->css;
}
/**
* Sets the css
*
* @param string $css
* @return void
*/
public function setCss($css)
{
$this->css = $css;
}
/**
* @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $feGroups
*/
public function setFeGroups($feGroups)
{
$this->feGroups = $feGroups;
}
/**
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
*/
public function getFeGroups()
{
return $this->feGroups;
}
/**
* title
*
* @var string
* @Extbase\Validate("NotEmpty")
*/
protected $title;
/**
* @var string
* @Extbase\Validate("NotEmpty")
*/
protected $googleCalendarApiKey;
/**
* @var string
* @Extbase\Validate("NotEmpty")
*/
protected $googleCalendarId;
/**
* css
*
* @var string
*/
protected $css;
/**
* fe_groups
*
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup>
*/
protected $feGroups;
/**
* Returns the title
*
* @return string $title
*/
public function getTitle()
{
return $this->title;
}
/**
* Sets the title
*
* @param string $title
*
* @return void
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getGoogleCalendarApiKey()
{
return $this->googleCalendarApiKey;
}
/**
* @param string $googleCalendarApiKey
*/
public function setGoogleCalendarApiKey($googleCalendarApiKey)
{
$this->googleCalendarApiKey = $googleCalendarApiKey;
}
/**
* @return string
*/
public function getGoogleCalendarId()
{
return $this->googleCalendarId;
}
/**
* @param string $googleCalendarId
*/
public function setGoogleCalendarId($googleCalendarId)
{
$this->googleCalendarId = $googleCalendarId;
}
/**
* Returns the css
*
* @return string $css
*/
public function getCss()
{
return $this->css;
}
/**
* Sets the css
*
* @param string $css
*
* @return void
*/
public function setCss($css)
{
$this->css = $css;
}
/**
* @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $feGroups
*/
public function setFeGroups($feGroups)
{
$this->feGroups = $feGroups;
}
/**
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
*/
public function getFeGroups()
{
return $this->feGroups;
}
}
......@@ -21,9 +21,9 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0.0",
"typo3/cms-core": ">=8.7.0 <11.0.0",
"typo3/cms-frontend": ">=8.7.0 <11.0.0",
"typo3/cms-extbase": ">=8.7.0 <11.0.0"
"typo3/cms-core": ">=9.5.0 <11.0.0",
"typo3/cms-frontend": ">=9.5.0 <11.0.0",
"typo3/cms-extbase": ">=9.5.0 <11.0.0"
},
"autoload": {
"psr-4": {
......@@ -31,7 +31,6 @@
}
},
"replace": {
"me_google_calendar": "self.version",
"typo3-ter/me-google-calendar": "self.version"
},
"extra": {
......@@ -39,7 +38,7 @@
"extension-key": "me_google_calendar"
},
"branch-alias": {
"dev-master": "4.9.x-dev"
"dev-master": "4.10.x-dev"
}
}
}
......@@ -14,7 +14,7 @@ $EM_CONF[$_EXTKEY] = [
'title' => 'Google Calendar',
'description' => 'Includes the jQuery Plugin FullCalendar, which generates a skinable calendar with different views (month, week, day, week list, day list etc.) from Google Calendar XML Feed(s) - now with extbase/fluid.',
'category' => 'plugin',
'version' => '4.9.1',
'version' => '4.10.0',
'state' => 'stable',
'author' => 'Alexander Grein',
'author_email' => 'alexander.grein@gmail.com',
......@@ -23,7 +23,7 @@ $EM_CONF[$_EXTKEY] = [
[
'depends' =>
[
'typo3' => '8.7.8-10.4.99',
'typo3' => '9.5.0-10.4.99',
],
'conflicts' =>
[],
......
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MediaEssenz.' . $_EXTKEY,
(function () {
/*
* Register Icon
*/
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'tx-megooglecalendar-calendar',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:me_google_calendar/Resources/Public/Icons/tx_megooglecalendar_domain_model_calendar.svg']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MediaEssenz.MeGoogleCalendar',
'Pi1',
[
'Calendar' => 'list',
'Calendar' => 'list',
],
// non-cacheable actions
[
]
);
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
options.saveDocNew.tx_megooglecalendar_feeds=1
');
');
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['meGoogleCalendarEidGetIcs'] = MediaEssenz\MeGoogleCalendar\Utility\EidGetIcs::class . '::main';
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['meGoogleCalendarEidGetIcs'] = MediaEssenz\MeGoogleCalendar\Utility\EidGetIcs::class . '::main';
})();
<?php
defined('TYPO3_MODE') or die();
/*
* Register Icon
*/
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'tx-megooglecalendar-calendar',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:me_google_calendar/Resources/Public/Icons/tx_megooglecalendar_domain_model_calendar.svg']
);
(function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_megooglecalendar_domain_model_calendar',
'EXT:me_google_calendar/Resources/Private/Language/locallang_csh_tx_megooglecalendar_domain_model_calendar.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_megooglecalendar_domain_model_calendar');
})();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment