2021-03-23 16:34:38 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Wrm\Events\Domain\Model;
|
|
|
|
|
|
|
|
use TYPO3\CMS\Extbase\Domain\Model\Category as ExtbaseCategory;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Extend original model to include furher properties.
|
2022-07-05 14:08:14 +02:00
|
|
|
*
|
|
|
|
* Used for Plugins and Import.
|
2021-03-23 16:34:38 +01:00
|
|
|
*/
|
|
|
|
class Category extends ExtbaseCategory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
protected $sorting = 0;
|
|
|
|
|
2022-07-05 14:08:14 +02:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
protected $hidden = false;
|
|
|
|
|
2021-03-23 16:34:38 +01:00
|
|
|
public function getSorting(): int
|
|
|
|
{
|
|
|
|
return $this->sorting;
|
|
|
|
}
|
2022-07-05 14:08:14 +02:00
|
|
|
|
|
|
|
public function hide(): void
|
|
|
|
{
|
|
|
|
$this->hidden = true;
|
|
|
|
}
|
2021-03-23 16:34:38 +01:00
|
|
|
}
|