WIP Introduce team departments via categories
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace EP\EpProducts\Domain\Model;
|
namespace EP\EpProducts\Domain\Model;
|
||||||
|
|
||||||
|
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
*
|
*
|
||||||
* Copyright notice
|
* Copyright notice
|
||||||
@@ -60,6 +62,16 @@ class Teammember extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
|||||||
*/
|
*/
|
||||||
protected $description = '';
|
protected $description = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\Category>
|
||||||
|
*/
|
||||||
|
protected $categories;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->categories = new ObjectStorage();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string $name
|
* @return string $name
|
||||||
*/
|
*/
|
||||||
@@ -156,4 +168,20 @@ class Teammember extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
|||||||
$this->description = $description;
|
$this->description = $description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\Category>
|
||||||
|
*/
|
||||||
|
public function getCategories()
|
||||||
|
{
|
||||||
|
return $this->categories;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param ObjectStorage $categories
|
||||||
|
*/
|
||||||
|
public function setCategories($categories)
|
||||||
|
{
|
||||||
|
$this->categories = $categories;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -221,3 +221,8 @@ $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignat
|
|||||||
'icon' => 'EXT:ep_products/Resources/Public/Icons/logo.svg'
|
'icon' => 'EXT:ep_products/Resources/Public/Icons/logo.svg'
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable(
|
||||||
|
'epproducts',
|
||||||
|
'tx_epproducts_domain_model_teammember'
|
||||||
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user