<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - fileType [select]
* - searchData [textarea]
* - localizedfields [localizedfields]
* -- reportTitle [textarea]
* -- description [textarea]
* -- stateOfTheSea [textarea]
* -- waveHeight [textarea]
* -- surfaceWind [textarea]
* -- reportDisclaimer [textarea]
* -- additionalNote [textarea]
* - twitterDescription [input]
* - startDate [datetime]
* - EndDate [datetime]
* - jsonData [textarea]
* - createdOn [datetime]
* - isHistorical [checkbox]
* - isMannedReport [checkbox]
* - isAWSReport [checkbox]
* - lang [input]
* - softDelete [checkbox]
* - createdBy [manyToOneRelation]
* - reportType [manyToOneRelation]
* - Asset [manyToOneRelation]
* - assetAr [manyToOneRelation]
* - organization [manyToManyObjectRelation]
* - forPublicPortal [checkbox]
* - forAjwaaPortal [checkbox]
* - sendEmail [checkbox]
* - forEmailChannel [checkbox]
* - forTwitterChannel [checkbox]
* - showPublicDescription [checkbox]
* - emails [textarea]
* - isGovernorates [checkbox]
* - publishOnPdf [checkbox]
* - isSchedule [checkbox]
* - scheduleDate [datetime]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Report\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByFileType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getBySearchData($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByReportTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByStateOfTheSea($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByWaveHeight($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getBySurfaceWind($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByReportDisclaimer($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByAdditionalNote($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByTwitterDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByStartDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByEndDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByJsonData($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByCreatedOn($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsHistorical($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsMannedReport($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsAWSReport($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByLang($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getBySoftDelete($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByCreatedBy($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByReportType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByAsset($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByAssetAr($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByOrganization($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByForPublicPortal($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByForAjwaaPortal($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getBySendEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByForEmailChannel($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByForTwitterChannel($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByShowPublicDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByEmails($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsGovernorates($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByPublishOnPdf($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsSchedule($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByScheduleDate($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Report extends Concrete
{
protected $o_classId = "Report";
protected $o_className = "Report";
protected $fileType;
protected $searchData;
protected $localizedfields;
protected $twitterDescription;
protected $startDate;
protected $EndDate;
protected $jsonData;
protected $createdOn;
protected $isHistorical;
protected $isMannedReport;
protected $isAWSReport;
protected $lang;
protected $softDelete;
protected $createdBy;
protected $reportType;
protected $Asset;
protected $assetAr;
protected $organization;
protected $forPublicPortal;
protected $forAjwaaPortal;
protected $sendEmail;
protected $forEmailChannel;
protected $forTwitterChannel;
protected $showPublicDescription;
protected $emails;
protected $isGovernorates;
protected $publishOnPdf;
protected $isSchedule;
protected $scheduleDate;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Report
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get fileType - File Type
* @return string|null
*/
public function getFileType(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("fileType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->fileType;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set fileType - File Type
* @param string|null $fileType
* @return \Pimcore\Model\DataObject\Report
*/
public function setFileType(?string $fileType)
{
$this->fileType = $fileType;
return $this;
}
/**
* Get searchData - Search Data
* @return string|null
*/
public function getSearchData(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("searchData");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->searchData;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set searchData - Search Data
* @param string|null $searchData
* @return \Pimcore\Model\DataObject\Report
*/
public function setSearchData(?string $searchData)
{
$this->searchData = $searchData;
return $this;
}
/**
* Get localizedfields -
* @return \Pimcore\Model\DataObject\Localizedfield|null
*/
public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("localizedfields");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get reportTitle - Report Title
* @return string|null
*/
public function getReportTitle($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("reportTitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("reportTitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get description - Description
* @return string|null
*/
public function getDescription($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("description", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("description");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get stateOfTheSea - State Of The Sea
* @return string|null
*/
public function getStateOfTheSea($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("stateOfTheSea", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("stateOfTheSea");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get waveHeight - Wave Height
* @return string|null
*/
public function getWaveHeight($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("waveHeight", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("waveHeight");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get surfaceWind - Surface Wind
* @return string|null
*/
public function getSurfaceWind($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("surfaceWind", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("surfaceWind");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get reportDisclaimer - Report Disclaimer
* @return string|null
*/
public function getReportDisclaimer($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("reportDisclaimer", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("reportDisclaimer");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get additionalNote - Additional Note
* @return string|null
*/
public function getAdditionalNote($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("additionalNote", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("additionalNote");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set localizedfields -
* @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
* @return \Pimcore\Model\DataObject\Report
*/
public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
{
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getLocalizedfields();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$this->markFieldDirty("localizedfields", true);
$this->localizedfields = $localizedfields;
return $this;
}
/**
* Set reportTitle - Report Title
* @param string|null $reportTitle
* @return \Pimcore\Model\DataObject\Report
*/
public function setReportTitle (?string $reportTitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("reportTitle", $reportTitle, $language, !$isEqual);
return $this;
}
/**
* Set description - Description
* @param string|null $description
* @return \Pimcore\Model\DataObject\Report
*/
public function setDescription (?string $description, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("description", $description, $language, !$isEqual);
return $this;
}
/**
* Set stateOfTheSea - State Of The Sea
* @param string|null $stateOfTheSea
* @return \Pimcore\Model\DataObject\Report
*/
public function setStateOfTheSea (?string $stateOfTheSea, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("stateOfTheSea", $stateOfTheSea, $language, !$isEqual);
return $this;
}
/**
* Set waveHeight - Wave Height
* @param string|null $waveHeight
* @return \Pimcore\Model\DataObject\Report
*/
public function setWaveHeight (?string $waveHeight, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("waveHeight", $waveHeight, $language, !$isEqual);
return $this;
}
/**
* Set surfaceWind - Surface Wind
* @param string|null $surfaceWind
* @return \Pimcore\Model\DataObject\Report
*/
public function setSurfaceWind (?string $surfaceWind, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("surfaceWind", $surfaceWind, $language, !$isEqual);
return $this;
}
/**
* Set reportDisclaimer - Report Disclaimer
* @param string|null $reportDisclaimer
* @return \Pimcore\Model\DataObject\Report
*/
public function setReportDisclaimer (?string $reportDisclaimer, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("reportDisclaimer", $reportDisclaimer, $language, !$isEqual);
return $this;
}
/**
* Set additionalNote - Additional Note
* @param string|null $additionalNote
* @return \Pimcore\Model\DataObject\Report
*/
public function setAdditionalNote (?string $additionalNote, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("additionalNote", $additionalNote, $language, !$isEqual);
return $this;
}
/**
* Get twitterDescription - Twitter Description
* @return string|null
*/
public function getTwitterDescription(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("twitterDescription");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->twitterDescription;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set twitterDescription - Twitter Description
* @param string|null $twitterDescription
* @return \Pimcore\Model\DataObject\Report
*/
public function setTwitterDescription(?string $twitterDescription)
{
$this->twitterDescription = $twitterDescription;
return $this;
}
/**
* Get startDate - Start Date
* @return \Carbon\Carbon|null
*/
public function getStartDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("startDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->startDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set startDate - Start Date
* @param \Carbon\Carbon|null $startDate
* @return \Pimcore\Model\DataObject\Report
*/
public function setStartDate(?\Carbon\Carbon $startDate)
{
$this->startDate = $startDate;
return $this;
}
/**
* Get EndDate - End Date
* @return \Carbon\Carbon|null
*/
public function getEndDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("EndDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->EndDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set EndDate - End Date
* @param \Carbon\Carbon|null $EndDate
* @return \Pimcore\Model\DataObject\Report
*/
public function setEndDate(?\Carbon\Carbon $EndDate)
{
$this->EndDate = $EndDate;
return $this;
}
/**
* Get jsonData - Json Data
* @return string|null
*/
public function getJsonData(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("jsonData");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->jsonData;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set jsonData - Json Data
* @param string|null $jsonData
* @return \Pimcore\Model\DataObject\Report
*/
public function setJsonData(?string $jsonData)
{
$this->jsonData = $jsonData;
return $this;
}
/**
* Get createdOn - Created On
* @return \Carbon\Carbon|null
*/
public function getCreatedOn(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("createdOn");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->createdOn;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set createdOn - Created On
* @param \Carbon\Carbon|null $createdOn
* @return \Pimcore\Model\DataObject\Report
*/
public function setCreatedOn(?\Carbon\Carbon $createdOn)
{
$this->createdOn = $createdOn;
return $this;
}
/**
* Get isHistorical - Is Historical
* @return bool|null
*/
public function getIsHistorical(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isHistorical");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isHistorical;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isHistorical - Is Historical
* @param bool|null $isHistorical
* @return \Pimcore\Model\DataObject\Report
*/
public function setIsHistorical(?bool $isHistorical)
{
$this->isHistorical = $isHistorical;
return $this;
}
/**
* Get isMannedReport - Is Manned Report
* @return bool|null
*/
public function getIsMannedReport(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isMannedReport");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isMannedReport;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isMannedReport - Is Manned Report
* @param bool|null $isMannedReport
* @return \Pimcore\Model\DataObject\Report
*/
public function setIsMannedReport(?bool $isMannedReport)
{
$this->isMannedReport = $isMannedReport;
return $this;
}
/**
* Get isAWSReport - Is AWS Report
* @return bool|null
*/
public function getIsAWSReport(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isAWSReport");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isAWSReport;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isAWSReport - Is AWS Report
* @param bool|null $isAWSReport
* @return \Pimcore\Model\DataObject\Report
*/
public function setIsAWSReport(?bool $isAWSReport)
{
$this->isAWSReport = $isAWSReport;
return $this;
}
/**
* Get lang - Lang
* @return string|null
*/
public function getLang(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lang");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lang;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lang - Lang
* @param string|null $lang
* @return \Pimcore\Model\DataObject\Report
*/
public function setLang(?string $lang)
{
$this->lang = $lang;
return $this;
}
/**
* Get softDelete - Soft Delete
* @return bool|null
*/
public function getSoftDelete(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("softDelete");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->softDelete;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set softDelete - Soft Delete
* @param bool|null $softDelete
* @return \Pimcore\Model\DataObject\Report
*/
public function setSoftDelete(?bool $softDelete)
{
$this->softDelete = $softDelete;
return $this;
}
/**
* Get createdBy - Created By
* @return \Pimcore\Model\DataObject\Customer|null
*/
public function getCreatedBy(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("createdBy");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("createdBy")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set createdBy - Created By
* @param \Pimcore\Model\DataObject\Customer|null $createdBy
* @return \Pimcore\Model\DataObject\Report
*/
public function setCreatedBy(?\Pimcore\Model\Element\AbstractElement $createdBy)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("createdBy");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCreatedBy();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $createdBy);
if (!$isEqual) {
$this->markFieldDirty("createdBy", true);
}
$this->createdBy = $fd->preSetData($this, $createdBy);
return $this;
}
/**
* Get reportType - Report Type
* @return \Pimcore\Model\DataObject\ReportType|null
*/
public function getReportType(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("reportType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("reportType")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set reportType - Report Type
* @param \Pimcore\Model\DataObject\ReportType|null $reportType
* @return \Pimcore\Model\DataObject\Report
*/
public function setReportType(?\Pimcore\Model\Element\AbstractElement $reportType)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("reportType");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getReportType();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $reportType);
if (!$isEqual) {
$this->markFieldDirty("reportType", true);
}
$this->reportType = $fd->preSetData($this, $reportType);
return $this;
}
/**
* Get Asset - Asset
* @return \Pimcore\Model\Asset|null
*/
public function getAsset(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("Asset");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("Asset")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set Asset - Asset
* @param \Pimcore\Model\Asset|null $Asset
* @return \Pimcore\Model\DataObject\Report
*/
public function setAsset(?\Pimcore\Model\Element\AbstractElement $Asset)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("Asset");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAsset();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $Asset);
if (!$isEqual) {
$this->markFieldDirty("Asset", true);
}
$this->Asset = $fd->preSetData($this, $Asset);
return $this;
}
/**
* Get assetAr - Asset Ar
* @return \Pimcore\Model\Asset|null
*/
public function getAssetAr(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("assetAr");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("assetAr")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set assetAr - Asset Ar
* @param \Pimcore\Model\Asset|null $assetAr
* @return \Pimcore\Model\DataObject\Report
*/
public function setAssetAr(?\Pimcore\Model\Element\AbstractElement $assetAr)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("assetAr");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAssetAr();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $assetAr);
if (!$isEqual) {
$this->markFieldDirty("assetAr", true);
}
$this->assetAr = $fd->preSetData($this, $assetAr);
return $this;
}
/**
* Get organization - Organization
* @return \Pimcore\Model\DataObject\Organization[]
*/
public function getOrganization(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("organization");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("organization")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set organization - Organization
* @param \Pimcore\Model\DataObject\Organization[] $organization
* @return \Pimcore\Model\DataObject\Report
*/
public function setOrganization(?array $organization)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("organization");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getOrganization();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $organization);
if (!$isEqual) {
$this->markFieldDirty("organization", true);
}
$this->organization = $fd->preSetData($this, $organization);
return $this;
}
/**
* Get forPublicPortal - For Public Portal
* @return bool|null
*/
public function getForPublicPortal(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("forPublicPortal");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->forPublicPortal;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set forPublicPortal - For Public Portal
* @param bool|null $forPublicPortal
* @return \Pimcore\Model\DataObject\Report
*/
public function setForPublicPortal(?bool $forPublicPortal)
{
$this->forPublicPortal = $forPublicPortal;
return $this;
}
/**
* Get forAjwaaPortal - For Ajwaa Portal
* @return bool|null
*/
public function getForAjwaaPortal(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("forAjwaaPortal");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->forAjwaaPortal;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set forAjwaaPortal - For Ajwaa Portal
* @param bool|null $forAjwaaPortal
* @return \Pimcore\Model\DataObject\Report
*/
public function setForAjwaaPortal(?bool $forAjwaaPortal)
{
$this->forAjwaaPortal = $forAjwaaPortal;
return $this;
}
/**
* Get sendEmail - Send Email to Organizations
* @return bool|null
*/
public function getSendEmail(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sendEmail");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->sendEmail;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set sendEmail - Send Email to Organizations
* @param bool|null $sendEmail
* @return \Pimcore\Model\DataObject\Report
*/
public function setSendEmail(?bool $sendEmail)
{
$this->sendEmail = $sendEmail;
return $this;
}
/**
* Get forEmailChannel - For Email Channel
* @return bool|null
*/
public function getForEmailChannel(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("forEmailChannel");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->forEmailChannel;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set forEmailChannel - For Email Channel
* @param bool|null $forEmailChannel
* @return \Pimcore\Model\DataObject\Report
*/
public function setForEmailChannel(?bool $forEmailChannel)
{
$this->forEmailChannel = $forEmailChannel;
return $this;
}
/**
* Get forTwitterChannel - For Twitter Channel
* @return bool|null
*/
public function getForTwitterChannel(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("forTwitterChannel");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->forTwitterChannel;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set forTwitterChannel - For Twitter Channel
* @param bool|null $forTwitterChannel
* @return \Pimcore\Model\DataObject\Report
*/
public function setForTwitterChannel(?bool $forTwitterChannel)
{
$this->forTwitterChannel = $forTwitterChannel;
return $this;
}
/**
* Get showPublicDescription - Show Only 10 Day Report Description to Public Portal
* @return bool|null
*/
public function getShowPublicDescription(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("showPublicDescription");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->showPublicDescription;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set showPublicDescription - Show Only 10 Day Report Description to Public Portal
* @param bool|null $showPublicDescription
* @return \Pimcore\Model\DataObject\Report
*/
public function setShowPublicDescription(?bool $showPublicDescription)
{
$this->showPublicDescription = $showPublicDescription;
return $this;
}
/**
* Get emails - Emails for Email channel
* @return string|null
*/
public function getEmails(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("emails");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->emails;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set emails - Emails for Email channel
* @param string|null $emails
* @return \Pimcore\Model\DataObject\Report
*/
public function setEmails(?string $emails)
{
$this->emails = $emails;
return $this;
}
/**
* Get isGovernorates - Create By All Governorates
* @return bool|null
*/
public function getIsGovernorates(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isGovernorates");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isGovernorates;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isGovernorates - Create By All Governorates
* @param bool|null $isGovernorates
* @return \Pimcore\Model\DataObject\Report
*/
public function setIsGovernorates(?bool $isGovernorates)
{
$this->isGovernorates = $isGovernorates;
return $this;
}
/**
* Get publishOnPdf - Publish On Pdf Used only for Red Sea and Arabian Gulf Reports
* @return bool|null
*/
public function getPublishOnPdf(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("publishOnPdf");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->publishOnPdf;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set publishOnPdf - Publish On Pdf Used only for Red Sea and Arabian Gulf Reports
* @param bool|null $publishOnPdf
* @return \Pimcore\Model\DataObject\Report
*/
public function setPublishOnPdf(?bool $publishOnPdf)
{
$this->publishOnPdf = $publishOnPdf;
return $this;
}
/**
* Get isSchedule - Is Schedule
* @return bool|null
*/
public function getIsSchedule(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isSchedule");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isSchedule;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isSchedule - Is Schedule
* @param bool|null $isSchedule
* @return \Pimcore\Model\DataObject\Report
*/
public function setIsSchedule(?bool $isSchedule)
{
$this->isSchedule = $isSchedule;
return $this;
}
/**
* Get scheduleDate - Schedule Date
* @return \Carbon\Carbon|null
*/
public function getScheduleDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("scheduleDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->scheduleDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set scheduleDate - Schedule Date
* @param \Carbon\Carbon|null $scheduleDate
* @return \Pimcore\Model\DataObject\Report
*/
public function setScheduleDate(?\Carbon\Carbon $scheduleDate)
{
$this->scheduleDate = $scheduleDate;
return $this;
}
}