src/Entity/FicheAction.php line 23

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\FicheActionRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Gedmo\Mapping\Annotation as Gedmo;
  10. /**
  11. * FicheAction V2.
  12. *
  13. * @ORM\Table(name="FicheAction")
  14. *
  15. * @ORM\Entity(repositoryClass=FicheActionRepository::class)
  16. *
  17. * @ORM\HasLifecycleCallbacks
  18. */
  19. class FicheAction
  20. {
  21. public $noResultReason;
  22. /**
  23. * @var int
  24. *
  25. * @ORM\Column(name="id", type="integer")
  26. *
  27. * @ORM\Id
  28. *
  29. * @ORM\GeneratedValue(strategy="AUTO")
  30. */
  31. private $id;
  32. /**
  33. * @Gedmo\Timestampable(on="create")
  34. *
  35. * @ORM\Column(name="created", type="datetime")
  36. */
  37. private $created;
  38. /**
  39. * @ORM\Column(name="updated", type="datetime")
  40. *
  41. * @Gedmo\Timestampable(on="update")
  42. */
  43. private $updated;
  44. /**
  45. * @var string
  46. *
  47. * @ORM\Column(name="title", type="string", length=255, nullable=true)
  48. */
  49. private $title;
  50. /**
  51. * @var string
  52. *
  53. * @ORM\Column(name="summary", type="text", nullable=true)
  54. */
  55. private $summary;
  56. /**
  57. * @ORM\OneToOne(targetEntity="Document", inversedBy="ficheActionDoc1", cascade={"persist"})
  58. *
  59. * @ORM\JoinColumn(name="document1_id", referencedColumnName="id", onDelete="SET NULL")
  60. */
  61. private $document1;
  62. /**
  63. * @ORM\OneToOne(targetEntity="Document", inversedBy="ficheActionDoc2", cascade={"persist"})
  64. *
  65. * @ORM\JoinColumn(name="document2_id", referencedColumnName="id", onDelete="SET NULL")
  66. */
  67. private $document2;
  68. /**
  69. * @ORM\OneToOne(targetEntity="Document", inversedBy="ficheActionDoc3", cascade={"persist"})
  70. *
  71. * @ORM\JoinColumn(name="document3_id", referencedColumnName="id", onDelete="SET NULL")
  72. */
  73. private $document3;
  74. /**
  75. * @ORM\OneToOne(targetEntity="Document", inversedBy="ficheActionDoc4", cascade={"persist"})
  76. *
  77. * @ORM\JoinColumn(name="document4_id", referencedColumnName="id", onDelete="SET NULL")
  78. */
  79. private $document4;
  80. /**
  81. * Pourquoi cette action a été mies en place ?
  82. *
  83. * @var string
  84. *
  85. * @ORM\Column(name="objective", type="text", nullable=true)
  86. */
  87. private $objective;
  88. /**
  89. * Comment cette action a été menée ?
  90. *
  91. * @var string
  92. *
  93. * @ORM\Column(name="descriptive", type="text", nullable=true)
  94. */
  95. private $descriptive;
  96. /**
  97. * Qu'est-ce que cette action a produit ? (3 champs texte).
  98. *
  99. * @var string
  100. *
  101. * @ORM\Column(name="resultOnTheTerritory", type="text", nullable=true)
  102. */
  103. private $resultOnTheTerritory;
  104. /**
  105. * Qu'est-ce que cette action a produit ?
  106. *
  107. * @var string
  108. *
  109. * @ORM\Column(name="resultForSocialCenter", type="text", nullable=true)
  110. */
  111. private $resultForSocialCenter;
  112. /**
  113. * Qu'est-ce que cette action a produit ?
  114. *
  115. * @var string
  116. *
  117. * @ORM\Column(name="resultForInhabitants", type="text", nullable=true)
  118. */
  119. private $resultForInhabitants;
  120. /**
  121. * @ORM\ManyToMany(targetEntity="PartnerAction", inversedBy="fichesActionAction", cascade={"persist"})
  122. *
  123. * @ORM\JoinTable(name="ficheAction_actionPartners")
  124. */
  125. private $actionPartners;
  126. /**
  127. * @ORM\ManyToMany(targetEntity="PartnerAction", inversedBy="fichesActionPartners", cascade={"persist"})
  128. *
  129. * @ORM\JoinTable(name="ficheAction_financialPartners")
  130. */
  131. private $financialPartners;
  132. /**
  133. * @ORM\ManyToOne(targetEntity="DimensionAction", inversedBy="fichesAction")
  134. *
  135. * @ORM\JoinColumn(name="dimension_action_id", referencedColumnName="id")
  136. */
  137. private $dimension;
  138. /**
  139. * @ORM\ManyToOne(targetEntity="PublicAction", inversedBy="fichesAction")
  140. *
  141. * @ORM\JoinColumn(name="public_action_id", referencedColumnName="id")
  142. */
  143. private $public;
  144. /**
  145. * @ORM\ManyToMany(targetEntity="Keyword", inversedBy="fichesAction", cascade={"persist"})
  146. *
  147. * @ORM\JoinTable(name="ficheAction_keyword")
  148. */
  149. private $keywords;
  150. /**
  151. * Qui est à l'initiative de l'action.
  152. *
  153. * @ORM\ManyToMany(targetEntity="ApplicantAction", inversedBy="fichesAction", cascade={"persist"})
  154. *
  155. * @ORM\JoinTable(name="ficheAction_applicant")
  156. */
  157. private $applicants;
  158. /**
  159. * Précision applicants ( si autre ).
  160. *
  161. * @var string
  162. *
  163. * @ORM\Column(name="applicant_other", type="text", nullable=true)
  164. */
  165. private $applicantOther;
  166. /**
  167. * @ORM\ManyToOne(targetEntity="Structure", inversedBy="fichesAction")
  168. *
  169. * @ORM\JoinColumn(name="structure_id", referencedColumnName="id", onDelete="CASCADE")
  170. */
  171. private $structure;
  172. /**
  173. * @var int
  174. *
  175. * @ORM\Column(name="status", type="integer", nullable=true)
  176. */
  177. private $status;
  178. /**
  179. * precision champ status si réponse = action terminée.
  180. *
  181. * @var string
  182. *
  183. * @ORM\Column(name="status_detailsr", type="text", nullable=true)
  184. */
  185. private $statusDetails;
  186. /**
  187. * Suite de l'action / limites.
  188. *
  189. * @var string
  190. *
  191. * @ORM\Column(name="afterActionLimits", type="text", nullable=true)
  192. */
  193. private $afterActionLimits;
  194. /**
  195. * Suite de l'action / Perspectives.
  196. *
  197. * @var string
  198. *
  199. * @ORM\Column(name="afterActionProspects", type="text", nullable=true)
  200. */
  201. private $afterActionProspects;
  202. /**
  203. * @var int
  204. *
  205. * @ORM\Column(name="financialRessources", type="text", nullable=true)
  206. */
  207. private $financialRessources;
  208. /**
  209. * @var int
  210. *
  211. * @ORM\Column(name="professionalRessources", type="text", nullable=true)
  212. */
  213. private $professionalRessources;
  214. /**
  215. * @ORM\ManyToOne(targetEntity="FicheActionTerritoire", inversedBy="fichesAction")
  216. *
  217. * @ORM\JoinColumn(name="ficheActionTerritoire_id", referencedColumnName="id")
  218. */
  219. private $ficheActionTerritoire;
  220. /**
  221. * Précision territoire concerné ( si autre ).
  222. *
  223. * @var string
  224. *
  225. * @ORM\Column(name="ficheActionTerritoire_other", type="text", nullable=true)
  226. */
  227. private $ficheActionTerritoireOther;
  228. /**
  229. * @ORM\OneToOne(targetEntity="FicheSynthetique", mappedBy="ficheAction")
  230. */
  231. private $ficheSynthetique;
  232. /**
  233. * @var int
  234. *
  235. * @ORM\Column(name="nbViews", type="integer", options={"default" = 0})
  236. */
  237. private $nbViews = 0;
  238. /**
  239. * Constructor.
  240. */
  241. public function __construct()
  242. {
  243. $this->keywords = new \Doctrine\Common\Collections\ArrayCollection();
  244. $this->applicants = new \Doctrine\Common\Collections\ArrayCollection();
  245. $this->actionPartners = new ArrayCollection();
  246. $this->financialPartners = new ArrayCollection();
  247. }
  248. #[\Override]
  249. public function __toString(): string
  250. {
  251. return $this->title.' ';
  252. }
  253. /**
  254. * specials fields for export.
  255. **/
  256. protected $exportKeywords;
  257. protected $exportApplicants;
  258. protected $exportActionPartners;
  259. protected $exportStatus;
  260. protected $exportSummuary;
  261. protected $exportStatusDetails;
  262. protected $exportApplicantOther;
  263. protected $exportObjective;
  264. protected $exportFicheActionTerritoireOther;
  265. protected $exportDescriptive;
  266. protected $exportFinancialRessources;
  267. protected $exportProfessionalRessources;
  268. protected $exportResultOnTheTerritory;
  269. protected $exportResultForSocialCenter;
  270. protected $exportResultForInhabitants;
  271. protected $exportAfterActionLimits;
  272. protected $exportAfterActionProspects;
  273. /**
  274. * Get id.
  275. *
  276. * @return int
  277. */
  278. public function getId()
  279. {
  280. return $this->id;
  281. }
  282. public function getCreated(): ?\DateTimeInterface
  283. {
  284. return $this->created;
  285. }
  286. public function getUpdated(): ?\DateTimeInterface
  287. {
  288. return $this->updated;
  289. }
  290. public function setCreated(\DateTimeInterface $created): self
  291. {
  292. $this->created = $created;
  293. return $this;
  294. }
  295. public function setUpdated(\DateTimeInterface $updated): self
  296. {
  297. $this->updated = $updated;
  298. return $this;
  299. }
  300. /**
  301. * Set title.
  302. *
  303. * @param string $title
  304. */
  305. public function setTitle($title): static
  306. {
  307. $this->title = $title;
  308. return $this;
  309. }
  310. /**
  311. * Get title.
  312. *
  313. * @return string
  314. */
  315. public function getTitle()
  316. {
  317. return $this->title;
  318. }
  319. /**
  320. * Set summary.
  321. *
  322. * @param string $summary
  323. */
  324. public function setSummary($summary): static
  325. {
  326. $this->summary = $summary;
  327. return $this;
  328. }
  329. /**
  330. * Get summary.
  331. *
  332. * @return string
  333. */
  334. public function getSummary()
  335. {
  336. return $this->summary;
  337. }
  338. /**
  339. * Set objective.
  340. *
  341. * @param string $objective
  342. */
  343. public function setObjective($objective): static
  344. {
  345. $this->objective = $objective;
  346. return $this;
  347. }
  348. /**
  349. * Get objective.
  350. *
  351. * @return string
  352. */
  353. public function getObjective()
  354. {
  355. return $this->objective;
  356. }
  357. /**
  358. * Set descriptive.
  359. *
  360. * @param string $descriptive
  361. */
  362. public function setDescriptive($descriptive): static
  363. {
  364. $this->descriptive = $descriptive;
  365. return $this;
  366. }
  367. /**
  368. * Get descriptive.
  369. *
  370. * @return string
  371. */
  372. public function getDescriptive()
  373. {
  374. return $this->descriptive;
  375. }
  376. /**
  377. * Set actionPartners.
  378. *
  379. * @param string $actionPartners
  380. */
  381. public function setActionPartners($actionPartners): static
  382. {
  383. $this->actionPartners = $actionPartners;
  384. return $this;
  385. }
  386. /**
  387. * Get actionPartners.
  388. *
  389. * @return string
  390. */
  391. public function getActionPartners()
  392. {
  393. return $this->actionPartners;
  394. }
  395. /**
  396. * Set financialPartners.
  397. *
  398. * @param string $financialPartners
  399. */
  400. public function setFinancialPartners($financialPartners): static
  401. {
  402. $this->financialPartners = $financialPartners;
  403. return $this;
  404. }
  405. /**
  406. * Get financialPartners.
  407. *
  408. * @return string
  409. */
  410. public function getFinancialPartners()
  411. {
  412. return $this->financialPartners;
  413. }
  414. /**
  415. * Set resultOnTheTerritory.
  416. *
  417. * @param string $resultOnTheTerritory
  418. */
  419. public function setResultOnTheTerritory($resultOnTheTerritory): static
  420. {
  421. $this->resultOnTheTerritory = $resultOnTheTerritory;
  422. return $this;
  423. }
  424. /**
  425. * Get resultOnTheTerritory.
  426. *
  427. * @return string
  428. */
  429. public function getResultOnTheTerritory()
  430. {
  431. return $this->resultOnTheTerritory;
  432. }
  433. /**
  434. * Set resultForSocialCenter.
  435. *
  436. * @param string $resultForSocialCenter
  437. */
  438. public function setResultForSocialCenter($resultForSocialCenter): static
  439. {
  440. $this->resultForSocialCenter = $resultForSocialCenter;
  441. return $this;
  442. }
  443. /**
  444. * Get resultForSocialCenter.
  445. *
  446. * @return string
  447. */
  448. public function getResultForSocialCenter()
  449. {
  450. return $this->resultForSocialCenter;
  451. }
  452. /**
  453. * Set resultForInhabitants.
  454. *
  455. * @param string $resultForInhabitants
  456. */
  457. public function setResultForInhabitants($resultForInhabitants): static
  458. {
  459. $this->resultForInhabitants = $resultForInhabitants;
  460. return $this;
  461. }
  462. /**
  463. * Get resultForInhabitants.
  464. *
  465. * @return string
  466. */
  467. public function getResultForInhabitants()
  468. {
  469. return $this->resultForInhabitants;
  470. }
  471. /**
  472. * Set dimension.
  473. */
  474. public function setDimension(?DimensionAction $dimension = null): static
  475. {
  476. $this->dimension = $dimension;
  477. return $this;
  478. }
  479. /**
  480. * Get dimension.
  481. *
  482. * @return DimensionAction
  483. */
  484. public function getDimension()
  485. {
  486. return $this->dimension;
  487. }
  488. /**
  489. * Set public.
  490. */
  491. public function setPublic(?PublicAction $public = null): static
  492. {
  493. $this->public = $public;
  494. return $this;
  495. }
  496. /**
  497. * Get public.
  498. *
  499. * @return PublicAction
  500. */
  501. public function getPublic()
  502. {
  503. return $this->public;
  504. }
  505. /**
  506. * Add keywords.
  507. */
  508. public function addKeyword(Keyword $keywords): static
  509. {
  510. $this->keywords[] = $keywords;
  511. return $this;
  512. }
  513. /**
  514. * Remove keywords.
  515. */
  516. public function removeKeyword(Keyword $keywords): void
  517. {
  518. $this->keywords->removeElement($keywords);
  519. }
  520. /**
  521. * Get keywords.
  522. *
  523. * @return \Doctrine\Common\Collections\Collection
  524. */
  525. public function getKeywords()
  526. {
  527. return $this->keywords;
  528. }
  529. /**
  530. * Add applicants.
  531. */
  532. public function addApplicant(ApplicantAction $applicants): static
  533. {
  534. $this->applicants[] = $applicants;
  535. return $this;
  536. }
  537. /**
  538. * Remove applicants.
  539. */
  540. public function removeApplicant(ApplicantAction $applicants): void
  541. {
  542. $this->applicants->removeElement($applicants);
  543. }
  544. /**
  545. * Get applicants.
  546. *
  547. * @return \Doctrine\Common\Collections\Collection
  548. */
  549. public function getApplicants()
  550. {
  551. return $this->applicants;
  552. }
  553. /**
  554. * Add actionPartners.
  555. */
  556. public function addActionPartner(PartnerAction $actionPartners): static
  557. {
  558. $this->actionPartners[] = $actionPartners;
  559. return $this;
  560. }
  561. /**
  562. * Remove actionPartners.
  563. */
  564. public function removeActionPartner(PartnerAction $actionPartners): void
  565. {
  566. $this->actionPartners->removeElement($actionPartners);
  567. }
  568. /**
  569. * Add financialPartners.
  570. */
  571. public function addFinancialPartner(PartnerAction $financialPartners): static
  572. {
  573. $this->financialPartners[] = $financialPartners;
  574. return $this;
  575. }
  576. /**
  577. * Remove financialPartners.
  578. */
  579. public function removeFinancialPartner(PartnerAction $financialPartners): void
  580. {
  581. $this->financialPartners->removeElement($financialPartners);
  582. }
  583. /**
  584. * Set structure.
  585. */
  586. public function setStructure(?Structure $structure = null): static
  587. {
  588. $this->structure = $structure;
  589. return $this;
  590. }
  591. /**
  592. * Get structure.
  593. *
  594. * @return Structure
  595. */
  596. public function getStructure()
  597. {
  598. return $this->structure;
  599. }
  600. /**
  601. * Set document1.
  602. */
  603. public function setDocument1(?Document $document1 = null): static
  604. {
  605. $this->document1 = $document1;
  606. return $this;
  607. }
  608. /**
  609. * Get document1.
  610. *
  611. * @return Document
  612. */
  613. public function getDocument1()
  614. {
  615. return $this->document1;
  616. }
  617. /**
  618. * Set document2.
  619. */
  620. public function setDocument2(?Document $document2 = null): static
  621. {
  622. $this->document2 = $document2;
  623. return $this;
  624. }
  625. /**
  626. * Get document2.
  627. *
  628. * @return Document
  629. */
  630. public function getDocument2()
  631. {
  632. return $this->document2;
  633. }
  634. /**
  635. * Set document3.
  636. */
  637. public function setDocument3(?Document $document3 = null): static
  638. {
  639. $this->document3 = $document3;
  640. return $this;
  641. }
  642. /**
  643. * Get document3.
  644. *
  645. * @return Document
  646. */
  647. public function getDocument3()
  648. {
  649. return $this->document3;
  650. }
  651. /**
  652. * Set document4.
  653. */
  654. public function setDocument4(?Document $document4 = null): static
  655. {
  656. $this->document4 = $document4;
  657. return $this;
  658. }
  659. /**
  660. * Get document4.
  661. *
  662. * @return Document
  663. */
  664. public function getDocument4()
  665. {
  666. return $this->document4;
  667. }
  668. /**
  669. * Set applicantOther.
  670. *
  671. * @param string $applicantOther
  672. */
  673. public function setApplicantOther($applicantOther): static
  674. {
  675. $this->applicantOther = $applicantOther;
  676. return $this;
  677. }
  678. /**
  679. * Get applicantOther.
  680. *
  681. * @return string
  682. */
  683. public function getApplicantOther()
  684. {
  685. return $this->applicantOther;
  686. }
  687. /**
  688. * Set status.
  689. *
  690. * @param int $status
  691. */
  692. public function setStatus($status): static
  693. {
  694. $this->status = $status;
  695. return $this;
  696. }
  697. /**
  698. * Get status.
  699. *
  700. * @return int
  701. */
  702. public function getStatus()
  703. {
  704. return $this->status;
  705. }
  706. /**
  707. * Set noResultReason.
  708. *
  709. * @param string $noResultReason
  710. */
  711. public function setNoResultReason($noResultReason): static
  712. {
  713. $this->noResultReason = $noResultReason;
  714. return $this;
  715. }
  716. /**
  717. * Get noResultReason.
  718. *
  719. * @return string
  720. */
  721. public function getNoResultReason()
  722. {
  723. return $this->noResultReason;
  724. }
  725. /**
  726. * Set afterActionLimits.
  727. *
  728. * @param string $afterActionLimits
  729. */
  730. public function setAfterActionLimits($afterActionLimits): static
  731. {
  732. $this->afterActionLimits = $afterActionLimits;
  733. return $this;
  734. }
  735. /**
  736. * Get afterActionLimits.
  737. *
  738. * @return string
  739. */
  740. public function getAfterActionLimits()
  741. {
  742. return $this->afterActionLimits;
  743. }
  744. /**
  745. * Set afterActionProspects.
  746. *
  747. * @param string $afterActionProspects
  748. */
  749. public function setAfterActionProspects($afterActionProspects): static
  750. {
  751. $this->afterActionProspects = $afterActionProspects;
  752. return $this;
  753. }
  754. /**
  755. * Get afterActionProspects.
  756. *
  757. * @return string
  758. */
  759. public function getAfterActionProspects()
  760. {
  761. return $this->afterActionProspects;
  762. }
  763. /**
  764. * Set financialRessources.
  765. *
  766. * @param int $financialRessources
  767. */
  768. public function setFinancialRessources($financialRessources): static
  769. {
  770. $this->financialRessources = $financialRessources;
  771. return $this;
  772. }
  773. /**
  774. * Get financialRessources.
  775. *
  776. * @return int
  777. */
  778. public function getFinancialRessources()
  779. {
  780. return $this->financialRessources;
  781. }
  782. /**
  783. * Set professionalRessources.
  784. *
  785. * @param int $professionalRessources
  786. */
  787. public function setProfessionalRessources($professionalRessources): static
  788. {
  789. $this->professionalRessources = $professionalRessources;
  790. return $this;
  791. }
  792. /**
  793. * Get professionalRessources.
  794. *
  795. * @return int
  796. */
  797. public function getProfessionalRessources()
  798. {
  799. return $this->professionalRessources;
  800. }
  801. /**
  802. * Set ficheActionTerritoire.
  803. */
  804. public function setFicheActionTerritoire(?FicheActionTerritoire $ficheActionTerritoire = null): static
  805. {
  806. $this->ficheActionTerritoire = $ficheActionTerritoire;
  807. return $this;
  808. }
  809. /**
  810. * Get ficheActionTerritoire.
  811. *
  812. * @return FicheActionTerritoire
  813. */
  814. public function getFicheActionTerritoire()
  815. {
  816. return $this->ficheActionTerritoire;
  817. }
  818. /**
  819. * Set ficheActionTerritoireOther.
  820. *
  821. * @param string $ficheActionTerritoireOther
  822. */
  823. public function setFicheActionTerritoireOther($ficheActionTerritoireOther): static
  824. {
  825. $this->ficheActionTerritoireOther = $ficheActionTerritoireOther;
  826. return $this;
  827. }
  828. /**
  829. * Get ficheActionTerritoireOther.
  830. *
  831. * @return string
  832. */
  833. public function getFicheActionTerritoireOther()
  834. {
  835. return $this->ficheActionTerritoireOther;
  836. }
  837. /**
  838. * Set statusDetails.
  839. *
  840. * @param string $statusDetails
  841. */
  842. public function setStatusDetails($statusDetails): static
  843. {
  844. $this->statusDetails = $statusDetails;
  845. return $this;
  846. }
  847. /**
  848. * Get statusDetails.
  849. *
  850. * @return string
  851. */
  852. public function getStatusDetails()
  853. {
  854. return $this->statusDetails;
  855. }
  856. /**
  857. * specials method for export fields.
  858. **/
  859. public function getExportKeywords(): string
  860. {
  861. $return = '';
  862. $separator = '';
  863. foreach ($this->getKeywords() as $keyword) {
  864. $return .= $separator.$keyword;
  865. $separator = ', ';
  866. }
  867. return $this->exportKeywords = $return;
  868. }
  869. public function getExportApplicants(): string
  870. {
  871. $return = '';
  872. $separator = '';
  873. foreach ($this->getApplicants() as $applicant) {
  874. $return .= $separator.$applicant;
  875. $separator = ', ';
  876. }
  877. return $this->exportApplicants = $return;
  878. }
  879. public function getExportActionPartners(): string
  880. {
  881. $return = '';
  882. $separator = '';
  883. foreach ($this->getActionPartners() as $actionPartner) {
  884. $return .= $separator.$actionPartner;
  885. $separator = ', ';
  886. }
  887. return $this->exportActionPartners = $return;
  888. }
  889. public function getExportStatus(): string
  890. {
  891. $return = '';
  892. if (1 == $this->getStatus()) {
  893. $return = 'Action en cours';
  894. }
  895. if (2 == $this->getStatus()) {
  896. $return = 'Action terminée';
  897. }
  898. return $this->exportStatus = $return;
  899. }
  900. public function getExportSummuary(): string
  901. {
  902. return $this->exportSummuary = $this->cleanRichTextforExport($this->getSummary());
  903. }
  904. public function getExportStatusDetails(): string
  905. {
  906. return $this->exportStatusDetails = $this->cleanRichTextforExport($this->getStatusDetails());
  907. }
  908. public function getExportApplicantOther(): string
  909. {
  910. return $this->exportApplicantOther = $this->cleanRichTextforExport($this->getApplicantOther());
  911. }
  912. public function getExportObjective(): string
  913. {
  914. return $this->exportObjective = $this->cleanRichTextforExport($this->getObjective());
  915. }
  916. public function getExportFicheActionTerritoireOther(): string
  917. {
  918. return $this->exportFicheActionTerritoireOther = $this->cleanRichTextforExport($this->getFicheActionTerritoireOther());
  919. }
  920. public function getExportDescriptive(): string
  921. {
  922. return $this->exportDescriptive = $this->cleanRichTextforExport($this->getDescriptive());
  923. }
  924. public function getExportFinancialRessources(): string
  925. {
  926. return $this->exportFinancialRessources = $this->cleanRichTextforExport($this->getFinancialRessources());
  927. }
  928. public function getExportProfessionalRessources(): string
  929. {
  930. return $this->exportProfessionalRessources = $this->cleanRichTextforExport($this->getProfessionalRessources());
  931. }
  932. public function getExportResultOnTheTerritory(): string
  933. {
  934. return $this->exportResultOnTheTerritory = $this->cleanRichTextforExport($this->getResultOnTheTerritory());
  935. }
  936. public function getExportResultForSocialCenter(): string
  937. {
  938. return $this->exportResultForSocialCenter = $this->cleanRichTextforExport($this->getResultForSocialCenter());
  939. }
  940. public function getExportResultForInhabitants(): string
  941. {
  942. return $this->exportResultForInhabitants = $this->cleanRichTextforExport($this->getResultForInhabitants());
  943. }
  944. public function getExportAfterActionLimits(): string
  945. {
  946. return $this->exportAfterActionLimits = $this->cleanRichTextforExport($this->getAfterActionLimits());
  947. }
  948. public function getExportAfterActionProspects(): string
  949. {
  950. return $this->exportAfterActionProspects = $this->cleanRichTextforExport($this->getAfterActionProspects());
  951. }
  952. private function cleanRichTextforExport($text): string
  953. {
  954. $text = str_replace('&#39;', "'", $text);
  955. return strip_tags(html_entity_decode($text));
  956. }
  957. /**
  958. * Set ficheSynthetique.
  959. */
  960. public function setFicheSynthetique(?FicheSynthetique $ficheSynthetique = null): static
  961. {
  962. $this->ficheSynthetique = $ficheSynthetique;
  963. return $this;
  964. }
  965. /**
  966. * Get ficheSynthetique.
  967. *
  968. * @return FicheSynthetique
  969. */
  970. public function getFicheSynthetique()
  971. {
  972. return $this->ficheSynthetique;
  973. }
  974. /**
  975. * Set nbViews.
  976. *
  977. * @param int $nbViews
  978. */
  979. public function setNbViews($nbViews): static
  980. {
  981. $this->nbViews = $nbViews;
  982. return $this;
  983. }
  984. /**
  985. * Get nbViews.
  986. *
  987. * @return int
  988. */
  989. public function getNbViews()
  990. {
  991. return $this->nbViews;
  992. }
  993. }