mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 04:36:12 +01:00
Add Tea.internalNotes
and break XLIFF, PHP < 7.4, and the sniffer
This commit is contained in:
parent
9e7b364816
commit
d1fcbb19af
5 changed files with 30 additions and 2 deletions
|
@ -25,6 +25,8 @@ class Tea extends AbstractEntity
|
||||||
*/
|
*/
|
||||||
protected string $description = '';
|
protected string $description = '';
|
||||||
|
|
||||||
|
private string $internalNotes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var FileReference|null
|
* @var FileReference|null
|
||||||
* @phpstan-var FileReference|LazyLoadingProxy|null
|
* @phpstan-var FileReference|LazyLoadingProxy|null
|
||||||
|
@ -59,6 +61,14 @@ class Tea extends AbstractEntity
|
||||||
$this->description = $description;
|
$this->description = $description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getInternalNotes(): string {
|
||||||
|
return $this->internalNotes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setInternalNotes(string $notes): void {
|
||||||
|
$this->internalNotes = $notes;
|
||||||
|
}
|
||||||
|
|
||||||
public function getImage(): ?FileReference
|
public function getImage(): ?FileReference
|
||||||
{
|
{
|
||||||
if ($this->image instanceof LazyLoadingProxy) {
|
if ($this->image instanceof LazyLoadingProxy) {
|
||||||
|
|
|
@ -25,7 +25,7 @@ $tca = [
|
||||||
'1' => [
|
'1' => [
|
||||||
'showitem' =>
|
'showitem' =>
|
||||||
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
|
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
|
||||||
title, description, image, owner,
|
title, description, internalNotes, image, owner,
|
||||||
--div--;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.tabs.access,
|
--div--;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.tabs.access,
|
||||||
--palette--;;hidden,
|
--palette--;;hidden,
|
||||||
--palette--;;access,',
|
--palette--;;access,',
|
||||||
|
@ -146,6 +146,16 @@ $tca = [
|
||||||
'eval' => 'trim',
|
'eval' => 'trim',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'internalNotes' => [
|
||||||
|
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.internalNotes',
|
||||||
|
'config' => [
|
||||||
|
'type' => 'text',
|
||||||
|
'rows' => 8,
|
||||||
|
'cols' => 40,
|
||||||
|
'max' => 2000,
|
||||||
|
'eval' => 'trim',
|
||||||
|
],
|
||||||
|
],
|
||||||
'image' => [
|
'image' => [
|
||||||
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.image',
|
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.image',
|
||||||
'config' => [
|
'config' => [
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
<source>Description</source>
|
<source>Description</source>
|
||||||
<target>Beschreibung</target>
|
<target>Beschreibung</target>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="tx_tea_domain_model_product_tea.description">
|
||||||
|
<source>Internal notes</source>
|
||||||
|
<target>Interne Notizen</target>
|
||||||
|
</trans-unit>
|
||||||
<trans-unit id="tx_tea_domain_model_product_tea.image">
|
<trans-unit id="tx_tea_domain_model_product_tea.image">
|
||||||
<source>Image</source>
|
<source>Image</source>
|
||||||
<target>Bild</target>
|
<target>Bild</target>
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
<trans-unit id="tx_tea_domain_model_product_tea.description">
|
<trans-unit id="tx_tea_domain_model_product_tea.description">
|
||||||
<source>Description</source>
|
<source>Description</source>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
<trans-unit id="tx_tea_domain_model_product_tea.description">
|
||||||
|
<source>Internal notes</source>
|
||||||
|
</trans-unit>
|
||||||
<trans-unit id="tx_tea_domain_model_product_tea.image">
|
<trans-unit id="tx_tea_domain_model_product_tea.image">
|
||||||
<source>Image</source>
|
<source>Image</source>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
CREATE TABLE tx_tea_domain_model_product_tea (
|
CREATE TABLE tx_tea_domain_model_product_tea (
|
||||||
title varchar(255) DEFAULT '' NOT NULL,
|
title varchar(255) DEFAULT '' NOT NULL,
|
||||||
description varchar(2000) DEFAULT '' NOT NULL,
|
description varchar(2000) DEFAULT '' NOT NULL,
|
||||||
|
internalNotes varchar(2000) DEFAULT '' NOT NULL,
|
||||||
image int(11) unsigned DEFAULT '0' NOT NULL,
|
image int(11) unsigned DEFAULT '0' NOT NULL,
|
||||||
owner int(11) unsigned DEFAULT '0' NOT NULL,
|
owner int(11) unsigned DEFAULT '0' NOT NULL,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue