|
|
@@ -0,0 +1,543 @@
|
|
|
+<?php
|
|
|
+declare(strict_types=1);
|
|
|
+
|
|
|
+namespace App\Entity\Organization;
|
|
|
+
|
|
|
+use ApiPlatform\Core\Annotation\ApiResource;
|
|
|
+use App\Repository\Organization\ParametersRepository;
|
|
|
+use Doctrine\ORM\Mapping as ORM;
|
|
|
+use Symfony\Component\Validator\Constraints as Assert;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ApiResource()
|
|
|
+ * @ORM\Entity(repositoryClass=ParametersRepository::class)
|
|
|
+ */
|
|
|
+class Parameters
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * @ORM\Id
|
|
|
+ * @ORM\GeneratedValue
|
|
|
+ * @ORM\Column(type="integer")
|
|
|
+ */
|
|
|
+ private $id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="date", nullable=true)
|
|
|
+ */
|
|
|
+ private $financialDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="date", nullable=true)
|
|
|
+ */
|
|
|
+ private $musicalDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="date", nullable=true)
|
|
|
+ */
|
|
|
+ private $startCourseDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="date", nullable=true)
|
|
|
+ */
|
|
|
+ private $endCourseDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : false})
|
|
|
+ */
|
|
|
+ private $trackingValidation = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : true})
|
|
|
+ */
|
|
|
+ private $editCriteriaNotationByAdminOnly = true;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $smsSenderName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : false})
|
|
|
+ */
|
|
|
+ private $logoDonorsMove = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $subDomain;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $website;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $otherWebsite;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : false})
|
|
|
+ */
|
|
|
+ private $desactivateOpentalentSiteWeb = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\BulletinPeriodEnum", "toArray"})
|
|
|
+ */
|
|
|
+ private $bulletinPeriod;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : false})
|
|
|
+ */
|
|
|
+ private $bulletinWithTeacher = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : false})
|
|
|
+ */
|
|
|
+ private $bulletinPrintAddress = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : true})
|
|
|
+ */
|
|
|
+ private $bulletinSignatureDirector = true;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : true})
|
|
|
+ */
|
|
|
+ private $bulletinDisplayLevelAcquired = true;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : false})
|
|
|
+ */
|
|
|
+ private $bulletinShowEducationWithoutEvaluation = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : false})
|
|
|
+ */
|
|
|
+ private $bulletinViewTestResults = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : false})
|
|
|
+ */
|
|
|
+ private $bulletinShowAbsences = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : true})
|
|
|
+ */
|
|
|
+ private $bulletinShowAverages = true;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\BulletinOutputEnum", "toArray"})
|
|
|
+ */
|
|
|
+ private $bulletinOutput;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $usernameSMS;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $passwordSMS;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : true})
|
|
|
+ */
|
|
|
+ private $bulletinEditWithoutEvaluation = true;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, options={"default":"STUDENTS_AND_THEIR_GUARDIANS"})
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\SendToBulletinEnum", "toArray"})
|
|
|
+ */
|
|
|
+ private $bulletinReceiver;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : true})
|
|
|
+ */
|
|
|
+ private $showAdherentList = true;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", options={"default" : false})
|
|
|
+ */
|
|
|
+ private $studentsAreAdherents = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, options={"default" : "Europe/Paris"})
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Core\TimeZoneEnum", "toArrayCustom"})
|
|
|
+ */
|
|
|
+ private $timezone = "Europe/Paris";
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Education\PeriodicityEnum", "toArray"})
|
|
|
+ */
|
|
|
+ private $educationPeriodicity;
|
|
|
+
|
|
|
+ public function getId(): ?int
|
|
|
+ {
|
|
|
+ return $this->id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getFinancialDate(): ?\DateTimeInterface
|
|
|
+ {
|
|
|
+ return $this->financialDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setFinancialDate(?\DateTimeInterface $financialDate): self
|
|
|
+ {
|
|
|
+ $this->financialDate = $financialDate;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getMusicalDate(): ?\DateTimeInterface
|
|
|
+ {
|
|
|
+ return $this->musicalDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setMusicalDate(?\DateTimeInterface $musicalDate): self
|
|
|
+ {
|
|
|
+ $this->musicalDate = $musicalDate;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getStartCourseDate(): ?\DateTimeInterface
|
|
|
+ {
|
|
|
+ return $this->startCourseDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setStartCourseDate(?\DateTimeInterface $startCourseDate): self
|
|
|
+ {
|
|
|
+ $this->startCourseDate = $startCourseDate;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getEndCourseDate(): ?\DateTimeInterface
|
|
|
+ {
|
|
|
+ return $this->endCourseDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setEndCourseDate(?\DateTimeInterface $endCourseDate): self
|
|
|
+ {
|
|
|
+ $this->endCourseDate = $endCourseDate;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getTrackingValidation(): ?bool
|
|
|
+ {
|
|
|
+ return $this->trackingValidation;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setTrackingValidation(bool $trackingValidation): self
|
|
|
+ {
|
|
|
+ $this->trackingValidation = $trackingValidation;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getEditCriteriaNotationByAdminOnly(): ?bool
|
|
|
+ {
|
|
|
+ return $this->editCriteriaNotationByAdminOnly;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setEditCriteriaNotationByAdminOnly(bool $editCriteriaNotationByAdminOnly): self
|
|
|
+ {
|
|
|
+ $this->editCriteriaNotationByAdminOnly = $editCriteriaNotationByAdminOnly;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getSmsSenderName(): ?string
|
|
|
+ {
|
|
|
+ return $this->smsSenderName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setSmsSenderName(?string $smsSenderName): self
|
|
|
+ {
|
|
|
+ $this->smsSenderName = $smsSenderName;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getLogoDonorsMove(): ?bool
|
|
|
+ {
|
|
|
+ return $this->logoDonorsMove;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setLogoDonorsMove(bool $logoDonorsMove): self
|
|
|
+ {
|
|
|
+ $this->logoDonorsMove = $logoDonorsMove;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getSubDomain(): ?string
|
|
|
+ {
|
|
|
+ return $this->subDomain;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setSubDomain(?string $subDomain): self
|
|
|
+ {
|
|
|
+ $this->subDomain = $subDomain;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getWebsite(): ?string
|
|
|
+ {
|
|
|
+ return $this->website;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setWebsite(?string $website): self
|
|
|
+ {
|
|
|
+ $this->website = $website;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getOtherWebsite(): ?string
|
|
|
+ {
|
|
|
+ return $this->otherWebsite;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setOtherWebsite(?string $otherWebsite): self
|
|
|
+ {
|
|
|
+ $this->otherWebsite = $otherWebsite;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getDesactivateOpentalentSiteWeb(): ?bool
|
|
|
+ {
|
|
|
+ return $this->desactivateOpentalentSiteWeb;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setDesactivateOpentalentSiteWeb(bool $desactivateOpentalentSiteWeb): self
|
|
|
+ {
|
|
|
+ $this->desactivateOpentalentSiteWeb = $desactivateOpentalentSiteWeb;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinPeriod(): ?string
|
|
|
+ {
|
|
|
+ return $this->bulletinPeriod;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinPeriod(?string $bulletinPeriod): self
|
|
|
+ {
|
|
|
+ $this->bulletinPeriod = $bulletinPeriod;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinWithTeacher(): ?bool
|
|
|
+ {
|
|
|
+ return $this->bulletinWithTeacher;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinWithTeacher(bool $bulletinWithTeacher): self
|
|
|
+ {
|
|
|
+ $this->bulletinWithTeacher = $bulletinWithTeacher;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinPrintAddress(): ?bool
|
|
|
+ {
|
|
|
+ return $this->bulletinPrintAddress;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinPrintAddress(bool $bulletinPrintAddress): self
|
|
|
+ {
|
|
|
+ $this->bulletinPrintAddress = $bulletinPrintAddress;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinSignatureDirector(): ?bool
|
|
|
+ {
|
|
|
+ return $this->bulletinSignatureDirector;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinSignatureDirector(bool $bulletinSignatureDirector): self
|
|
|
+ {
|
|
|
+ $this->bulletinSignatureDirector = $bulletinSignatureDirector;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinDisplayLevelAcquired(): ?bool
|
|
|
+ {
|
|
|
+ return $this->bulletinDisplayLevelAcquired;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinDisplayLevelAcquired(bool $bulletinDisplayLevelAcquired): self
|
|
|
+ {
|
|
|
+ $this->bulletinDisplayLevelAcquired = $bulletinDisplayLevelAcquired;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinShowEducationWithoutEvaluation(): ?bool
|
|
|
+ {
|
|
|
+ return $this->bulletinShowEducationWithoutEvaluation;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinShowEducationWithoutEvaluation(bool $bulletinShowEducationWithoutEvaluation): self
|
|
|
+ {
|
|
|
+ $this->bulletinShowEducationWithoutEvaluation = $bulletinShowEducationWithoutEvaluation;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinViewTestResults(): ?bool
|
|
|
+ {
|
|
|
+ return $this->bulletinViewTestResults;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinViewTestResults(bool $bulletinViewTestResults): self
|
|
|
+ {
|
|
|
+ $this->bulletinViewTestResults = $bulletinViewTestResults;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinShowAbsences(): ?bool
|
|
|
+ {
|
|
|
+ return $this->bulletinShowAbsences;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinShowAbsences(bool $bulletinShowAbsences): self
|
|
|
+ {
|
|
|
+ $this->bulletinShowAbsences = $bulletinShowAbsences;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinShowAverages(): ?bool
|
|
|
+ {
|
|
|
+ return $this->bulletinShowAverages;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinShowAverages(bool $bulletinShowAverages): self
|
|
|
+ {
|
|
|
+ $this->bulletinShowAverages = $bulletinShowAverages;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinOutput(): ?string
|
|
|
+ {
|
|
|
+ return $this->bulletinOutput;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinOutput(?string $bulletinOutput): self
|
|
|
+ {
|
|
|
+ $this->bulletinOutput = $bulletinOutput;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getUsernameSMS(): ?string
|
|
|
+ {
|
|
|
+ return $this->usernameSMS;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setUsernameSMS(?string $usernameSMS): self
|
|
|
+ {
|
|
|
+ $this->usernameSMS = $usernameSMS;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getPasswordSMS(): ?string
|
|
|
+ {
|
|
|
+ return $this->passwordSMS;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setPasswordSMS(?string $passwordSMS): self
|
|
|
+ {
|
|
|
+ $this->passwordSMS = $passwordSMS;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinEditWithoutEvaluation(): ?bool
|
|
|
+ {
|
|
|
+ return $this->bulletinEditWithoutEvaluation;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinEditWithoutEvaluation(bool $bulletinEditWithoutEvaluation): self
|
|
|
+ {
|
|
|
+ $this->bulletinEditWithoutEvaluation = $bulletinEditWithoutEvaluation;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getBulletinReceiver(): ?string
|
|
|
+ {
|
|
|
+ return $this->bulletinReceiver;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setBulletinReceiver(?string $bulletinReceiver): self
|
|
|
+ {
|
|
|
+ $this->bulletinReceiver = $bulletinReceiver;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getShowAdherentList(): ?bool
|
|
|
+ {
|
|
|
+ return $this->showAdherentList;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setShowAdherentList(bool $showAdherentList): self
|
|
|
+ {
|
|
|
+ $this->showAdherentList = $showAdherentList;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getStudentsAreAdherents(): ?bool
|
|
|
+ {
|
|
|
+ return $this->studentsAreAdherents;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setStudentsAreAdherents(bool $studentsAreAdherents): self
|
|
|
+ {
|
|
|
+ $this->studentsAreAdherents = $studentsAreAdherents;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getTimezone(): ?string
|
|
|
+ {
|
|
|
+ return $this->timezone;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setTimezone(string $timezone): self
|
|
|
+ {
|
|
|
+ $this->timezone = $timezone;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getEducationPeriodicity(): ?string
|
|
|
+ {
|
|
|
+ return $this->educationPeriodicity;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setEducationPeriodicity(?string $educationPeriodicity): self
|
|
|
+ {
|
|
|
+ $this->educationPeriodicity = $educationPeriodicity;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+}
|