mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-10 07:16:13 +01:00
33 lines
532 B
PHP
33 lines
532 B
PHP
<?php
|
|
|
|
namespace Wrm\Events\Domain\Model;
|
|
|
|
use TYPO3\CMS\Extbase\Domain\Model\Category as ExtbaseCategory;
|
|
|
|
/**
|
|
* Extend original model to include furher properties.
|
|
*
|
|
* Used for Plugins and Import.
|
|
*/
|
|
class Category extends ExtbaseCategory
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $sorting = 0;
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $hidden = false;
|
|
|
|
public function getSorting(): int
|
|
{
|
|
return $this->sorting;
|
|
}
|
|
|
|
public function hide(): void
|
|
{
|
|
$this->hidden = true;
|
|
}
|
|
}
|