Initial commit - Typo3 11.5.41
This commit is contained in:
@@ -0,0 +1,383 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model;
|
||||
|
||||
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
||||
use TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy;
|
||||
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Category Model
|
||||
*/
|
||||
class Category extends AbstractEntity
|
||||
{
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $sorting = 0;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $crdate;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $tstamp;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $starttime;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $endtime;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $hidden = false;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $sysLanguageUid = 0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $l10nParent = 0;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $title = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $description = '';
|
||||
|
||||
/**
|
||||
* @var \GeorgRinger\News\Domain\Model\Category
|
||||
* @TYPO3\CMS\Extbase\Annotation\ORM\Lazy
|
||||
*/
|
||||
protected $parentcategory;
|
||||
|
||||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\GeorgRinger\News\Domain\Model\FileReference>
|
||||
* @TYPO3\CMS\Extbase\Annotation\ORM\Lazy
|
||||
*/
|
||||
protected $images;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $shortcut = 0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $singlePid = 0;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $importId = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $importSource = '';
|
||||
|
||||
/**
|
||||
* keep it as string as it should be only used during imports
|
||||
* @var string
|
||||
*/
|
||||
protected $feGroup = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $seoTitle = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $seoDescription = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $seoHeadline = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $seoText = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $slug = '';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->images = new ObjectStorage();
|
||||
}
|
||||
|
||||
public function getSorting(): int
|
||||
{
|
||||
return $this->sorting;
|
||||
}
|
||||
|
||||
public function setSorting(int $sorting): void
|
||||
{
|
||||
$this->sorting = $sorting;
|
||||
}
|
||||
|
||||
public function getCrdate(): ?\DateTime
|
||||
{
|
||||
return $this->crdate;
|
||||
}
|
||||
|
||||
public function setCrdate(\DateTime $crdate): void
|
||||
{
|
||||
$this->crdate = $crdate;
|
||||
}
|
||||
|
||||
public function getTstamp(): ?\DateTime
|
||||
{
|
||||
return $this->tstamp;
|
||||
}
|
||||
|
||||
public function setTstamp(\DateTime $tstamp): void
|
||||
{
|
||||
$this->tstamp = $tstamp;
|
||||
}
|
||||
|
||||
public function getStarttime(): ?\DateTime
|
||||
{
|
||||
return $this->starttime;
|
||||
}
|
||||
|
||||
public function setStarttime(\DateTime $starttime): void
|
||||
{
|
||||
$this->starttime = $starttime;
|
||||
}
|
||||
|
||||
public function getEndtime(): ?\DateTime
|
||||
{
|
||||
return $this->endtime;
|
||||
}
|
||||
|
||||
public function setEndtime(\DateTime $endtime): void
|
||||
{
|
||||
$this->endtime = $endtime;
|
||||
}
|
||||
|
||||
public function getHidden(): bool
|
||||
{
|
||||
return $this->hidden;
|
||||
}
|
||||
|
||||
public function setHidden(bool $hidden): void
|
||||
{
|
||||
$this->hidden = $hidden;
|
||||
}
|
||||
|
||||
public function getSysLanguageUid(): int
|
||||
{
|
||||
// int cast is needed as $this->_languageUid is null by default
|
||||
return (int)$this->_languageUid;
|
||||
}
|
||||
|
||||
public function setSysLanguageUid(int $sysLanguageUid): void
|
||||
{
|
||||
$this->_languageUid = $sysLanguageUid;
|
||||
}
|
||||
|
||||
public function getL10nParent(): int
|
||||
{
|
||||
return $this->l10nParent;
|
||||
}
|
||||
|
||||
public function setL10nParent(int $l10nParent): void
|
||||
{
|
||||
$this->l10nParent = $l10nParent;
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
public function setTitle(string $title): void
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
public function setDescription(string $description): void
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
public function getParentcategory(): ?\GeorgRinger\News\Domain\Model\Category
|
||||
{
|
||||
return $this->parentcategory instanceof LazyLoadingProxy
|
||||
? $this->parentcategory->_loadRealInstance()
|
||||
: $this->parentcategory;
|
||||
}
|
||||
|
||||
public function setParentcategory(\GeorgRinger\News\Domain\Model\Category $category): void
|
||||
{
|
||||
$this->parentcategory = $category;
|
||||
}
|
||||
|
||||
/**
|
||||
* @psalm-return ObjectStorage<FileReference>
|
||||
*/
|
||||
public function getImages(): ObjectStorage
|
||||
{
|
||||
return $this->images;
|
||||
}
|
||||
|
||||
public function setImages(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $images): void
|
||||
{
|
||||
$this->images = $images;
|
||||
}
|
||||
|
||||
public function addImage(FileReference $image): void
|
||||
{
|
||||
$this->images->attach($image);
|
||||
}
|
||||
|
||||
public function removeImage(FileReference $image): void
|
||||
{
|
||||
$this->images->detach($image);
|
||||
}
|
||||
|
||||
public function getFirstImage(): ?FileReference
|
||||
{
|
||||
$images = $this->getImages();
|
||||
$images->rewind();
|
||||
|
||||
return $images->valid() ? $images->current() : null;
|
||||
}
|
||||
|
||||
public function getShortcut(): int
|
||||
{
|
||||
return $this->shortcut;
|
||||
}
|
||||
|
||||
public function setShortcut(int $shortcut): void
|
||||
{
|
||||
$this->shortcut = $shortcut;
|
||||
}
|
||||
|
||||
public function getSinglePid(): int
|
||||
{
|
||||
return $this->singlePid;
|
||||
}
|
||||
|
||||
public function setSinglePid(int $singlePid): void
|
||||
{
|
||||
$this->singlePid = $singlePid;
|
||||
}
|
||||
|
||||
public function getImportId(): string
|
||||
{
|
||||
return $this->importId;
|
||||
}
|
||||
|
||||
public function setImportId(string $importId): void
|
||||
{
|
||||
$this->importId = $importId;
|
||||
}
|
||||
|
||||
public function getImportSource(): string
|
||||
{
|
||||
return $this->importSource;
|
||||
}
|
||||
|
||||
public function setImportSource(string $importSource): void
|
||||
{
|
||||
$this->importSource = $importSource;
|
||||
}
|
||||
|
||||
public function getFeGroup(): string
|
||||
{
|
||||
return $this->feGroup;
|
||||
}
|
||||
|
||||
public function setFeGroup(string $feGroup): void
|
||||
{
|
||||
$this->feGroup = $feGroup;
|
||||
}
|
||||
|
||||
public function getSeoTitle(): string
|
||||
{
|
||||
return $this->seoTitle;
|
||||
}
|
||||
|
||||
public function setSeoTitle(string $seoTitle): void
|
||||
{
|
||||
$this->seoTitle = $seoTitle;
|
||||
}
|
||||
|
||||
public function getSeoDescription(): string
|
||||
{
|
||||
return $this->seoDescription;
|
||||
}
|
||||
|
||||
public function setSeoDescription(string $seoDescription): void
|
||||
{
|
||||
$this->seoDescription = $seoDescription;
|
||||
}
|
||||
|
||||
public function getSeoHeadline(): string
|
||||
{
|
||||
return $this->seoHeadline;
|
||||
}
|
||||
|
||||
public function setSeoHeadline(string $seoHeadline): void
|
||||
{
|
||||
$this->seoHeadline = $seoHeadline;
|
||||
}
|
||||
|
||||
public function getSeoText(): string
|
||||
{
|
||||
return $this->seoText;
|
||||
}
|
||||
|
||||
public function setSeoText(string $seoText): void
|
||||
{
|
||||
$this->seoText = $seoText;
|
||||
}
|
||||
|
||||
public function getSlug(): string
|
||||
{
|
||||
return $this->slug;
|
||||
}
|
||||
|
||||
public function setSlug(string $slug): void
|
||||
{
|
||||
$this->slug = $slug;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Demanded repository interface
|
||||
*/
|
||||
interface DemandInterface
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model\Dto;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Administration Demand model
|
||||
*/
|
||||
class AdministrationDemand extends NewsDemand
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $recursive = '';
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $selectedCategories = [];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $sortingField = 'datetime';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $sortingDirection = 'desc';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $searchWord = '';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $hidden = 0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $archived = 0;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRecursive(): string
|
||||
{
|
||||
return $this->recursive;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $recursive
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setRecursive(string $recursive): void
|
||||
{
|
||||
$this->recursive = $recursive;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getSelectedCategories(): array
|
||||
{
|
||||
return $this->selectedCategories;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string|array $selectedCategories
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSelectedCategories($selectedCategories)
|
||||
{
|
||||
if ($selectedCategories === '0' || $selectedCategories === ['0']) {
|
||||
return;
|
||||
}
|
||||
if (is_string($selectedCategories)) {
|
||||
$selectedCategories = explode(',', $selectedCategories);
|
||||
}
|
||||
$this->selectedCategories = $selectedCategories;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSortingField(): string
|
||||
{
|
||||
return $this->sortingField;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sortingField
|
||||
* @return void
|
||||
*/
|
||||
public function setSortingField(string $sortingField): void
|
||||
{
|
||||
$this->sortingField = $sortingField;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSortingDirection(): string
|
||||
{
|
||||
return $this->sortingDirection;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sortingDirection
|
||||
* @return void
|
||||
*/
|
||||
public function setSortingDirection(string $sortingDirection): void
|
||||
{
|
||||
$this->sortingDirection = $sortingDirection;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSearchWord(): string
|
||||
{
|
||||
return $this->searchWord;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $searchWord
|
||||
* @return void
|
||||
*/
|
||||
public function setSearchWord(string $searchWord): void
|
||||
{
|
||||
$this->searchWord = $searchWord;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getHidden(): int
|
||||
{
|
||||
return $this->hidden;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $hidden
|
||||
* @return void
|
||||
*/
|
||||
public function setHidden(int $hidden): void
|
||||
{
|
||||
$this->hidden = $hidden;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getArchived(): int
|
||||
{
|
||||
return $this->archived;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $archived
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setArchived(int $archived): void
|
||||
{
|
||||
$this->archived = $archived;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model\Dto;
|
||||
|
||||
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Extension Manager configuration
|
||||
*/
|
||||
class EmConfiguration
|
||||
{
|
||||
|
||||
/**
|
||||
* Fill the properties properly
|
||||
*
|
||||
* @param array $configuration em configuration
|
||||
*/
|
||||
public function __construct(array $configuration = [])
|
||||
{
|
||||
if (empty($configuration)) {
|
||||
try {
|
||||
$extensionConfiguration = GeneralUtility::makeInstance(ExtensionConfiguration::class);
|
||||
$configuration = $extensionConfiguration->get('news');
|
||||
} catch (\Exception $exception) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
foreach ($configuration as $key => $value) {
|
||||
if (property_exists(__CLASS__, $key)) {
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** @var int */
|
||||
protected $tagPid = 0;
|
||||
|
||||
/** @var bool */
|
||||
protected $prependAtCopy = true;
|
||||
|
||||
/** @var string */
|
||||
protected $categoryRestriction = '';
|
||||
|
||||
/** @var bool */
|
||||
protected $categoryBeGroupTceFormsRestriction = false;
|
||||
|
||||
/** @var bool */
|
||||
protected $contentElementRelation = true;
|
||||
|
||||
/** @var bool */
|
||||
protected $contentElementPreview = true;
|
||||
|
||||
/** @var bool */
|
||||
protected $manualSorting = false;
|
||||
|
||||
/** @var string */
|
||||
protected $archiveDate = 'date';
|
||||
|
||||
/** @var bool */
|
||||
protected $dateTimeNotRequired = false;
|
||||
|
||||
/** @var bool */
|
||||
protected $showImporter = false;
|
||||
|
||||
/** @var bool */
|
||||
protected $rteForTeaser = false;
|
||||
|
||||
/** @var bool */
|
||||
protected $showAdministrationModule = true;
|
||||
|
||||
/** @var bool */
|
||||
protected $hidePageTreeForAdministrationModule = false;
|
||||
|
||||
/** @var int */
|
||||
protected $storageUidImporter = 1;
|
||||
|
||||
/** @var string */
|
||||
protected $resourceFolderImporter = '/news_import';
|
||||
|
||||
/** @var bool */
|
||||
protected $advancedMediaPreview = true;
|
||||
|
||||
/** @var string */
|
||||
protected $slugBehaviour = 'unique';
|
||||
|
||||
public function getTagPid(): int
|
||||
{
|
||||
return (int)$this->tagPid;
|
||||
}
|
||||
|
||||
public function getPrependAtCopy(): bool
|
||||
{
|
||||
return (bool)$this->prependAtCopy;
|
||||
}
|
||||
|
||||
public function getCategoryRestriction(): string
|
||||
{
|
||||
return $this->categoryRestriction;
|
||||
}
|
||||
|
||||
public function getCategoryBeGroupTceFormsRestriction(): bool
|
||||
{
|
||||
return (bool)$this->categoryBeGroupTceFormsRestriction;
|
||||
}
|
||||
|
||||
public function getContentElementRelation(): bool
|
||||
{
|
||||
return (bool)$this->contentElementRelation;
|
||||
}
|
||||
|
||||
public function getContentElementPreview(): bool
|
||||
{
|
||||
return (bool)$this->contentElementPreview;
|
||||
}
|
||||
|
||||
public function getManualSorting(): bool
|
||||
{
|
||||
return (bool)$this->manualSorting;
|
||||
}
|
||||
|
||||
public function getArchiveDate(): string
|
||||
{
|
||||
return $this->archiveDate;
|
||||
}
|
||||
|
||||
public function getShowImporter(): bool
|
||||
{
|
||||
return (bool)$this->showImporter;
|
||||
}
|
||||
|
||||
public function setShowAdministrationModule($showAdministrationModule): void
|
||||
{
|
||||
$this->showAdministrationModule = $showAdministrationModule;
|
||||
}
|
||||
|
||||
public function getShowAdministrationModule(): bool
|
||||
{
|
||||
return (bool)$this->showAdministrationModule;
|
||||
}
|
||||
|
||||
public function getRteForTeaser(): bool
|
||||
{
|
||||
return (bool)$this->rteForTeaser;
|
||||
}
|
||||
|
||||
public function getResourceFolderImporter(): string
|
||||
{
|
||||
return $this->resourceFolderImporter;
|
||||
}
|
||||
|
||||
public function getStorageUidImporter(): int
|
||||
{
|
||||
return (int)$this->storageUidImporter;
|
||||
}
|
||||
|
||||
public function getDateTimeNotRequired(): bool
|
||||
{
|
||||
return (bool)$this->dateTimeNotRequired;
|
||||
}
|
||||
|
||||
public function getDateTimeRequired(): bool
|
||||
{
|
||||
return !(bool)$this->dateTimeNotRequired;
|
||||
}
|
||||
|
||||
public function getHidePageTreeForAdministrationModule(): bool
|
||||
{
|
||||
return (bool)$this->hidePageTreeForAdministrationModule;
|
||||
}
|
||||
|
||||
public function isAdvancedMediaPreview(): bool
|
||||
{
|
||||
return (bool)$this->advancedMediaPreview;
|
||||
}
|
||||
|
||||
public function getSlugBehaviour(): string
|
||||
{
|
||||
return $this->slugBehaviour;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,734 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model\Dto;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
use GeorgRinger\News\Domain\Model\DemandInterface;
|
||||
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
||||
|
||||
/**
|
||||
* News Demand object which holds all information to get the correct news records.
|
||||
*/
|
||||
class NewsDemand extends AbstractEntity implements DemandInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $categories = [];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $categoryConjunction = '';
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $includeSubCategories = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $author = '';
|
||||
|
||||
/** @var string */
|
||||
protected $tags = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $archiveRestriction = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $timeRestriction = '';
|
||||
|
||||
/** @var string */
|
||||
protected $timeRestrictionHigh = '';
|
||||
|
||||
/** @var int */
|
||||
protected $topNewsRestriction = 0;
|
||||
|
||||
/** @var string */
|
||||
protected $dateField = '';
|
||||
|
||||
/** @var int */
|
||||
protected $month = 0;
|
||||
|
||||
/** @var int */
|
||||
protected $year = 0;
|
||||
|
||||
/** @var int */
|
||||
protected $day = 0;
|
||||
|
||||
/** @var string */
|
||||
protected $searchFields = '';
|
||||
|
||||
/** @var Search */
|
||||
protected $search;
|
||||
|
||||
/** @var string */
|
||||
protected $order = '';
|
||||
|
||||
/** @var string */
|
||||
protected $orderByAllowed = '';
|
||||
|
||||
/** @var bool */
|
||||
protected $topNewsFirst = false;
|
||||
|
||||
/** @var string */
|
||||
protected $storagePage = '';
|
||||
|
||||
/** @var int */
|
||||
protected $limit = 0;
|
||||
|
||||
/** @var int */
|
||||
protected $offset = 0;
|
||||
|
||||
/** @var bool */
|
||||
protected $excludeAlreadyDisplayedNews = false;
|
||||
|
||||
/** @var string */
|
||||
protected $hideIdList = '';
|
||||
|
||||
/** @var string */
|
||||
protected $idList = '';
|
||||
|
||||
/** @var string */
|
||||
protected $action = '';
|
||||
|
||||
/** @var string */
|
||||
protected $class = '';
|
||||
|
||||
/**
|
||||
* List of allowed types
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $types = [];
|
||||
|
||||
/**
|
||||
* Holding custom data, use e.g. your ext key as array key
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $_customSettings = [];
|
||||
|
||||
/**
|
||||
* Set archive settings
|
||||
*
|
||||
* @param string $archiveRestriction archive setting
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setArchiveRestriction(string $archiveRestriction): NewsDemand
|
||||
{
|
||||
$this->archiveRestriction = $archiveRestriction;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get archive setting
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getArchiveRestriction(): string
|
||||
{
|
||||
return $this->archiveRestriction;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of allowed categories
|
||||
*
|
||||
* @param array $categories categories
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setCategories(array $categories): NewsDemand
|
||||
{
|
||||
$this->categories = $categories;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get allowed categories
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getCategories(): array
|
||||
{
|
||||
return $this->categories;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set category mode
|
||||
*
|
||||
* @param string $categoryConjunction
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setCategoryConjunction(string $categoryConjunction): NewsDemand
|
||||
{
|
||||
$this->categoryConjunction = $categoryConjunction;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get category mode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCategoryConjunction(): string
|
||||
{
|
||||
return $this->categoryConjunction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get include sub categories
|
||||
* @return bool
|
||||
*/
|
||||
public function getIncludeSubCategories(): bool
|
||||
{
|
||||
return (boolean)$this->includeSubCategories;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $includeSubCategories
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setIncludeSubCategories(bool $includeSubCategories): NewsDemand
|
||||
{
|
||||
$this->includeSubCategories = $includeSubCategories;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set author
|
||||
*
|
||||
* @param string $author
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setAuthor(string $author): NewsDemand
|
||||
{
|
||||
$this->author = $author;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get author
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthor(): string
|
||||
{
|
||||
return $this->author;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Tags
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTags(): string
|
||||
{
|
||||
return $this->tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Tags
|
||||
*
|
||||
* @param string $tags tags
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setTags(string $tags): NewsDemand
|
||||
{
|
||||
$this->tags = $tags;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set time limit low, either integer or string
|
||||
*
|
||||
* @param string|int $timeRestriction
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setTimeRestriction($timeRestriction): NewsDemand
|
||||
{
|
||||
$this->timeRestriction = $timeRestriction;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get time limit low
|
||||
*
|
||||
* @return string|int
|
||||
*/
|
||||
public function getTimeRestriction()
|
||||
{
|
||||
return $this->timeRestriction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get time limit high
|
||||
*
|
||||
* @return string|int
|
||||
*/
|
||||
public function getTimeRestrictionHigh()
|
||||
{
|
||||
return $this->timeRestrictionHigh;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set time limit high
|
||||
*
|
||||
* @param string|int $timeRestrictionHigh
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setTimeRestrictionHigh($timeRestrictionHigh): NewsDemand
|
||||
{
|
||||
$this->timeRestrictionHigh = $timeRestrictionHigh;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set order
|
||||
*
|
||||
* @param string $order order
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setOrder(string $order): NewsDemand
|
||||
{
|
||||
$this->order = $order;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get order
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrder(): string
|
||||
{
|
||||
return $this->order;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set order allowed
|
||||
*
|
||||
* @param string $orderByAllowed allowed fields for ordering
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setOrderByAllowed(string $orderByAllowed): NewsDemand
|
||||
{
|
||||
$this->orderByAllowed = $orderByAllowed;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get allowed order fields
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderByAllowed(): string
|
||||
{
|
||||
return $this->orderByAllowed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set order respect top news flag
|
||||
*
|
||||
* @param bool $topNewsFirst respect top news flag
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setTopNewsFirst(bool $topNewsFirst): NewsDemand
|
||||
{
|
||||
$this->topNewsFirst = $topNewsFirst;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get order respect top news flag
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getTopNewsFirst(): bool
|
||||
{
|
||||
return $this->topNewsFirst;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set search fields
|
||||
*
|
||||
* @param string $searchFields search fields
|
||||
*
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setSearchFields(string $searchFields): NewsDemand
|
||||
{
|
||||
$this->searchFields = $searchFields;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get search fields
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSearchFields(): string
|
||||
{
|
||||
return $this->searchFields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set top news setting
|
||||
*
|
||||
* @param int $topNewsRestriction top news settings
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setTopNewsRestriction(int $topNewsRestriction): NewsDemand
|
||||
{
|
||||
$this->topNewsRestriction = $topNewsRestriction;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get top news setting
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getTopNewsRestriction(): int
|
||||
{
|
||||
return $this->topNewsRestriction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set list of storage pages
|
||||
*
|
||||
* @param string $storagePage storage page list
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setStoragePage(string $storagePage): NewsDemand
|
||||
{
|
||||
$this->storagePage = $storagePage;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get list of storage pages
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStoragePage(): string
|
||||
{
|
||||
return $this->storagePage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get day restriction
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getDay(): int
|
||||
{
|
||||
return $this->day;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set day restriction
|
||||
*
|
||||
* @param int $day
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setDay(int $day): NewsDemand
|
||||
{
|
||||
$this->day = (int)$day;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get month restriction
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getMonth(): int
|
||||
{
|
||||
return $this->month;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set month restriction
|
||||
*
|
||||
* @param int $month month
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setMonth(int $month): NewsDemand
|
||||
{
|
||||
$this->month = (int)$month;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get year restriction
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getYear(): int
|
||||
{
|
||||
return $this->year;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set year restriction
|
||||
*
|
||||
* @param int $year year
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setYear(int $year): NewsDemand
|
||||
{
|
||||
$this->year = (int)$year;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set limit
|
||||
*
|
||||
* @param int $limit limit
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setLimit(int $limit): NewsDemand
|
||||
{
|
||||
$this->limit = $limit;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get limit
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getLimit(): int
|
||||
{
|
||||
return $this->limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set offset
|
||||
*
|
||||
* @param int $offset offset
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setOffset(int $offset): NewsDemand
|
||||
{
|
||||
$this->offset = $offset;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get offset
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getOffset(): int
|
||||
{
|
||||
return $this->offset;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set date field which is used for datemenu
|
||||
*
|
||||
* @param string $dateField datefield
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setDateField(string $dateField): NewsDemand
|
||||
{
|
||||
$this->dateField = $dateField;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get date field which is used for datemenu
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDateField(): string
|
||||
{
|
||||
if (in_array($this->dateField, ['datetime', 'archive'], true)
|
||||
|| isset($GLOBALS['TCA']['tx_news_domain_model_news']['columns'][$this->dateField])) {
|
||||
return $this->dateField;
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get search object
|
||||
*
|
||||
* @return null|Search
|
||||
*/
|
||||
public function getSearch(): ?Search
|
||||
{
|
||||
return $this->search;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set search object
|
||||
*
|
||||
* @param null|Search $search search object
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setSearch(Search $search = null): NewsDemand
|
||||
{
|
||||
$this->search = $search;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set flag if displayed news records should be excluded
|
||||
*
|
||||
* @param bool $excludeAlreadyDisplayedNews
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setExcludeAlreadyDisplayedNews(bool $excludeAlreadyDisplayedNews): NewsDemand
|
||||
{
|
||||
$this->excludeAlreadyDisplayedNews = $excludeAlreadyDisplayedNews;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get flag if displayed news records should be excluded
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getExcludeAlreadyDisplayedNews(): bool
|
||||
{
|
||||
return $this->excludeAlreadyDisplayedNews;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHideIdList(): string
|
||||
{
|
||||
return $this->hideIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $hideIdList
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setHideIdList(string $hideIdList): NewsDemand
|
||||
{
|
||||
$this->hideIdList = $hideIdList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getIdList(): string
|
||||
{
|
||||
return $this->idList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $idList
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setIdList(string $idList): NewsDemand
|
||||
{
|
||||
$this->idList = $idList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAction(): string
|
||||
{
|
||||
return $this->action;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $action
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setAction(string $action): NewsDemand
|
||||
{
|
||||
$this->action = $action;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getClass(): string
|
||||
{
|
||||
return $this->class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $class
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setClass(string $class): NewsDemand
|
||||
{
|
||||
$this->class = $class;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $action
|
||||
* @param string $controller
|
||||
* @return NewsDemand
|
||||
*/
|
||||
public function setActionAndClass(string $action, string $controller): NewsDemand
|
||||
{
|
||||
$this->action = $action;
|
||||
$this->class = $controller;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get allowed types
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getTypes(): array
|
||||
{
|
||||
return $this->types;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set allowed types
|
||||
*
|
||||
* @param array $types
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setTypes(array $types): void
|
||||
{
|
||||
$this->types = $types;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getCustomSettings(): array
|
||||
{
|
||||
return $this->_customSettings;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $customSettings
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setCustomSettings(array $customSettings): void
|
||||
{
|
||||
$this->_customSettings = $customSettings;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,172 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model\Dto;
|
||||
|
||||
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* News Demand object which holds all information to get the correct
|
||||
* news records.
|
||||
*/
|
||||
class Search extends AbstractEntity
|
||||
{
|
||||
|
||||
/**
|
||||
* Basic search word
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $subject = '';
|
||||
|
||||
/**
|
||||
* Search fields
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $fields = '';
|
||||
|
||||
/**
|
||||
* Minimum date
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $minimumDate = '';
|
||||
|
||||
/**
|
||||
* Maximum date
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $maximumDate = '';
|
||||
|
||||
/**
|
||||
* Field using for date queries
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $dateField = '';
|
||||
|
||||
/** @var bool */
|
||||
protected $splitSubjectWords = false;
|
||||
|
||||
/**
|
||||
* Get the subject
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSubject(): string
|
||||
{
|
||||
return $this->subject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set subject
|
||||
*
|
||||
* @param string $subject
|
||||
*/
|
||||
public function setSubject(string $subject): void
|
||||
{
|
||||
$this->subject = $subject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fields
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFields(): string
|
||||
{
|
||||
return $this->fields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set fields
|
||||
*
|
||||
* @param string $fields
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setFields(string $fields): void
|
||||
{
|
||||
$this->fields = $fields;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $maximumDate
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setMaximumDate($maximumDate): void
|
||||
{
|
||||
$this->maximumDate = $maximumDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMaximumDate(): string
|
||||
{
|
||||
return $this->maximumDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $minimumDate
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setMinimumDate(string $minimumDate): void
|
||||
{
|
||||
$this->minimumDate = $minimumDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMinimumDate(): string
|
||||
{
|
||||
return $this->minimumDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $dateField
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setDateField($dateField): void
|
||||
{
|
||||
$this->dateField = $dateField;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDateField(): string
|
||||
{
|
||||
return $this->dateField;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isSplitSubjectWords(): bool
|
||||
{
|
||||
return $this->splitSubjectWords;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $splitSubjectWords
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSplitSubjectWords($splitSubjectWords): void
|
||||
{
|
||||
$this->splitSubjectWords = $splitSubjectWords;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* File Reference
|
||||
*/
|
||||
class FileReference extends \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
{
|
||||
const VIEW_DETAIL_ONLY = 0;
|
||||
const VIEW_LIST_AND_DETAIL = 1;
|
||||
const VIEW_LIST_ONLY = 2;
|
||||
|
||||
/**
|
||||
* Obsolete when foreign_selector is supported by ExtBase persistence layer
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $uidLocal = 0;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $title = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $description = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $alternative = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $link = '';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $showinpreview = 0;
|
||||
|
||||
/**
|
||||
* Set File uid
|
||||
*
|
||||
* @param int $fileUid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setFileUid($fileUid): void
|
||||
{
|
||||
$this->uidLocal = $fileUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get File UID
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getFileUid(): int
|
||||
{
|
||||
return $this->uidLocal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set alternative
|
||||
*
|
||||
* @param string $alternative
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setAlternative($alternative): void
|
||||
{
|
||||
$this->alternative = $alternative;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get alternative
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAlternative(): string
|
||||
{
|
||||
return (string)($this->alternative !== '' ? $this->alternative : $this->getOriginalResource()->getAlternative());
|
||||
}
|
||||
|
||||
/**
|
||||
* Set description
|
||||
*
|
||||
* @param string $description
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setDescription($description): void
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get description
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription(): string
|
||||
{
|
||||
return (string)($this->description !== '' ? $this->description : $this->getOriginalResource()->getDescription());
|
||||
}
|
||||
|
||||
/**
|
||||
* Set link
|
||||
*
|
||||
* @param string $link
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setLink($link): void
|
||||
{
|
||||
$this->link = $link;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get link
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getLink()
|
||||
{
|
||||
return (string)($this->link !== '' ? $this->link : $this->getOriginalResource()->getLink());
|
||||
}
|
||||
|
||||
/**
|
||||
* Set title
|
||||
*
|
||||
* @param string $title
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setTitle($title): void
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTitle(): string
|
||||
{
|
||||
return (string)($this->title !== '' ? $this->title : $this->getOriginalResource()->getTitle());
|
||||
}
|
||||
|
||||
/**
|
||||
* Set showinpreview
|
||||
*
|
||||
* @param int $showinpreview
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setShowinpreview($showinpreview): void
|
||||
{
|
||||
$this->showinpreview = $showinpreview;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get showinpreview
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getShowinpreview(): int
|
||||
{
|
||||
return $this->showinpreview;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,202 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model;
|
||||
|
||||
use TYPO3\CMS\Extbase\DomainObject\AbstractValueObject;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
/**
|
||||
* Link model
|
||||
*/
|
||||
class Link extends AbstractValueObject
|
||||
{
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $crdate;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $tstamp;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $title = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $description = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $uri = '';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $l10nParent = 0;
|
||||
|
||||
/**
|
||||
* Get creation date
|
||||
*
|
||||
* @return null|\DateTime
|
||||
*/
|
||||
public function getCrdate(): ?\DateTime
|
||||
{
|
||||
return $this->crdate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set creation date
|
||||
*
|
||||
* @param \DateTime $crdate creation date
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setCrdate($crdate): void
|
||||
{
|
||||
$this->crdate = $crdate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get timestamp
|
||||
*
|
||||
* @return null|\DateTime
|
||||
*/
|
||||
public function getTstamp(): ?\DateTime
|
||||
{
|
||||
return $this->tstamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set timestamp
|
||||
*
|
||||
* @param \DateTime $tstamp timestamp
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setTstamp($tstamp): void
|
||||
{
|
||||
$this->tstamp = $tstamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTitle(): string
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set title
|
||||
*
|
||||
* @param string $title title
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setTitle($title): void
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get description
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription(): string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set description
|
||||
*
|
||||
* @param string $description description
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setDescription($description): void
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get uri
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUri(): string
|
||||
{
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set uri
|
||||
*
|
||||
* @param string $uri uri
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setUri($uri): void
|
||||
{
|
||||
$this->uri = $uri;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set sys language
|
||||
*
|
||||
* @param int $sysLanguageUid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSysLanguageUid($sysLanguageUid): void
|
||||
{
|
||||
$this->_languageUid = $sysLanguageUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get sys language
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getSysLanguageUid(): int
|
||||
{
|
||||
return $this->_languageUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set l10n parent
|
||||
*
|
||||
* @param int $l10nParent
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setL10nParent($l10nParent): void
|
||||
{
|
||||
$this->l10nParent = $l10nParent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get l10n parent
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getL10nParent(): int
|
||||
{
|
||||
return $this->l10nParent;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* News model for default news
|
||||
*/
|
||||
class NewsDefault extends News
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* News model for external news
|
||||
*/
|
||||
class NewsExternal extends News
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* News model for internal news
|
||||
*/
|
||||
class NewsInternal extends News
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model;
|
||||
|
||||
use TYPO3\CMS\Extbase\DomainObject\AbstractValueObject;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
/**
|
||||
* Tag model
|
||||
*/
|
||||
class Tag extends AbstractValueObject
|
||||
{
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $crdate;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $tstamp;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $title = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $seoTitle = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $seoDescription = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $seoHeadline = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $seoText = '';
|
||||
|
||||
/** @var string */
|
||||
protected $slug = '';
|
||||
|
||||
/**
|
||||
* Get crdate
|
||||
*
|
||||
* @return null|\DateTime
|
||||
*/
|
||||
public function getCrdate(): ?\DateTime
|
||||
{
|
||||
return $this->crdate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set crdate
|
||||
*
|
||||
* @param \DateTime $crdate crdate
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setCrdate($crdate): void
|
||||
{
|
||||
$this->crdate = $crdate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Tstamp
|
||||
*
|
||||
* @return null|\DateTime
|
||||
*/
|
||||
public function getTstamp(): ?\DateTime
|
||||
{
|
||||
return $this->tstamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set tstamp
|
||||
*
|
||||
* @param \DateTime $tstamp tstamp
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setTstamp($tstamp): void
|
||||
{
|
||||
$this->tstamp = $tstamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTitle(): string
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set title
|
||||
*
|
||||
* @param string $title title
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setTitle($title): void
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSeoTitle(): string
|
||||
{
|
||||
return $this->seoTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $seoTitle
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSeoTitle($seoTitle): void
|
||||
{
|
||||
$this->seoTitle = $seoTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSeoDescription(): string
|
||||
{
|
||||
return $this->seoDescription;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $seoDescription
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSeoDescription($seoDescription): void
|
||||
{
|
||||
$this->seoDescription = $seoDescription;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSeoHeadline(): string
|
||||
{
|
||||
return $this->seoHeadline;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $seoHeadline
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSeoHeadline($seoHeadline): void
|
||||
{
|
||||
$this->seoHeadline = $seoHeadline;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSeoText(): string
|
||||
{
|
||||
return $this->seoText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $seoText
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSeoText($seoText): void
|
||||
{
|
||||
$this->seoText = $seoText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSlug(): string
|
||||
{
|
||||
return $this->slug;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $slug
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSlug($slug): void
|
||||
{
|
||||
$this->slug = $slug;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,573 @@
|
||||
<?php
|
||||
|
||||
namespace GeorgRinger\News\Domain\Model;
|
||||
|
||||
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
||||
|
||||
/**
|
||||
* This file is part of the "news" Extension for TYPO3 CMS.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*/
|
||||
/**
|
||||
* Model of tt_content
|
||||
*/
|
||||
class TtContent extends AbstractEntity
|
||||
{
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $crdate;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $tstamp;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $CType = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $header = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $headerPosition = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $bodytext = '';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $colPos = 0;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $image = '';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $imagewidth = 0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $imageorient = 0;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $imagecaption = '';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $imagecols = 0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $imageborder = 0;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $media = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $layout = '';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $cols = 0;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $subheader = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $headerLink = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $imageLink = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $imageZoom = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $altText = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $titleText = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $headerLayout = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $listType = '';
|
||||
|
||||
/**
|
||||
* @return null|\DateTime
|
||||
*/
|
||||
public function getCrdate(): ?\DateTime
|
||||
{
|
||||
return $this->crdate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime $crdate
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setCrdate($crdate): void
|
||||
{
|
||||
$this->crdate = $crdate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return null|\DateTime
|
||||
*/
|
||||
public function getTstamp(): ?\DateTime
|
||||
{
|
||||
return $this->tstamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime $tstamp
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setTstamp($tstamp): void
|
||||
{
|
||||
$this->tstamp = $tstamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCType(): string
|
||||
{
|
||||
return $this->CType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $ctype
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setCType(string $ctype): void
|
||||
{
|
||||
$this->CType = $ctype;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHeader(): string
|
||||
{
|
||||
return $this->header;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $header
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setHeader(string $header): void
|
||||
{
|
||||
$this->header = $header;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHeaderPosition(): string
|
||||
{
|
||||
return $this->headerPosition;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $headerPosition
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setHeaderPosition(string $headerPosition): void
|
||||
{
|
||||
$this->headerPosition = $headerPosition;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBodytext(): string
|
||||
{
|
||||
return $this->bodytext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $bodytext
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setBodytext(string $bodytext): void
|
||||
{
|
||||
$this->bodytext = $bodytext;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the colpos
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getColPos(): int
|
||||
{
|
||||
return (int)$this->colPos;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set colpos
|
||||
*
|
||||
* @param int $colPos
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setColPos($colPos): void
|
||||
{
|
||||
$this->colPos = $colPos;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getImage(): string
|
||||
{
|
||||
return $this->image;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $image
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setImage(string $image): void
|
||||
{
|
||||
$this->image = $image;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getImagewidth(): int
|
||||
{
|
||||
return $this->imagewidth;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $imagewidth
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setImagewidth(int $imagewidth): void
|
||||
{
|
||||
$this->imagewidth = $imagewidth;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getImageorient(): int
|
||||
{
|
||||
return $this->imageorient;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $imageorient
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setImageorient(int $imageorient): void
|
||||
{
|
||||
$this->imageorient = $imageorient;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getImagecaption(): string
|
||||
{
|
||||
return $this->imagecaption;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $imagecaption
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setImagecaption(string $imagecaption): void
|
||||
{
|
||||
$this->imagecaption = $imagecaption;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getImagecols(): int
|
||||
{
|
||||
return $this->imagecols;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $imagecols
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setImagecols(int $imagecols): void
|
||||
{
|
||||
$this->imagecols = $imagecols;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getImageborder(): int
|
||||
{
|
||||
return $this->imageborder;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $imageborder
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setImageborder(int $imageborder): void
|
||||
{
|
||||
$this->imageborder = $imageborder;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMedia(): string
|
||||
{
|
||||
return $this->media;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $media
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setMedia(string $media): void
|
||||
{
|
||||
$this->media = $media;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLayout(): string
|
||||
{
|
||||
return $this->layout;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $layout
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setLayout(string $layout): void
|
||||
{
|
||||
$this->layout = $layout;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getCols(): int
|
||||
{
|
||||
return $this->cols;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $cols
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setCols(int $cols): void
|
||||
{
|
||||
$this->cols = $cols;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSubheader(): string
|
||||
{
|
||||
return $this->subheader;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $subheader
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setSubheader(string $subheader): void
|
||||
{
|
||||
$this->subheader = $subheader;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHeaderLink(): string
|
||||
{
|
||||
return $this->headerLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $headerLink
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setHeaderLink(string $headerLink): void
|
||||
{
|
||||
$this->headerLink = $headerLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getImageLink(): string
|
||||
{
|
||||
return $this->imageLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $imageLink
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setImageLink(string $imageLink): void
|
||||
{
|
||||
$this->imageLink = $imageLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getImageZoom(): string
|
||||
{
|
||||
return $this->imageZoom;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $imageZoom
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setImageZoom(string $imageZoom): void
|
||||
{
|
||||
$this->imageZoom = $imageZoom;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAltText(): string
|
||||
{
|
||||
return $this->altText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $altText
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setAltText(string $altText): void
|
||||
{
|
||||
$this->altText = $altText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTitleText(): string
|
||||
{
|
||||
return $this->titleText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $titleText
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setTitleText(string $titleText): void
|
||||
{
|
||||
$this->titleText = $titleText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHeaderLayout(): string
|
||||
{
|
||||
return $this->headerLayout;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $headerLayout
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setHeaderLayout(string $headerLayout): void
|
||||
{
|
||||
$this->headerLayout = $headerLayout;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getListType(): string
|
||||
{
|
||||
return $this->listType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $listType
|
||||
* @return void
|
||||
*/
|
||||
public function setListType(string $listType): void
|
||||
{
|
||||
$this->listType = $listType;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user