ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
src
/
Entity
/
Viewing: Actualite.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\ActualiteRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=ActualiteRepository::class) */ class Actualite { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=1055 ) */ private $newTitleFr; /** * @ORM\Column(type="string", length=1055) */ private $contentFr; /** * @ORM\Column(type="string", length=1055) */ private $contentEn; /** * @ORM\Column(type="string", length=1055) */ private $contentEs; /** * @ORM\Column(type="boolean") */ private $publish; /** * @ORM\ManyToOne(targetEntity=User::class) */ private $createdBy; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="string", length=1055 ) */ private $newTitleEn; /** * @ORM\Column(type="string", length=1055 ) */ private $newTitleEs; /** * @ORM\ManyToMany(targetEntity=Commentaire::class, mappedBy="actualite") */ private $commentaires; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) */ private $cover; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) */ private $picture1; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) */ private $picture2; /** * @ORM\Column(type="integer", nullable=true) */ private $liked; /** * @ORM\Column(type="integer", nullable=true) */ private $unliked; /** * @ORM\ManyToMany(targetEntity=Visitor::class) */ private $visitors; public function __construct() { $this->commentaires = new ArrayCollection(); $this->createdAt = new \DateTime( ); $this->publish = false; $this->visitors = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getNewTitleFr(): ?string { return $this->newTitleFr; } public function setNewTitleFr(string $newTitleFr): self { $this->newTitleFr = $newTitleFr; return $this; } public function getContentFr(): ?string { return $this->contentFr; } public function setContentFr(string $contentFr): self { $this->contentFr = $contentFr; return $this; } public function getContentEn(): ?string { return $this->contentEn; } public function setContentEn(string $contentEn): self { $this->contentEn = $contentEn; return $this; } public function getContentEs(): ?string { return $this->contentEs; } public function setContentEs(string $contentEs): self { $this->contentEs = $contentEs; return $this; } public function getPublish(): ?bool { return $this->publish; } public function setPublish(bool $publish): self { $this->publish = $publish; return $this; } public function getCreatedBy(): ?User { return $this->createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getNewTitleEn(): ?string { return $this->newTitleEn; } public function setNewTitleEn(string $newTitleEn): self { $this->newTitleEn = $newTitleEn; return $this; } public function getNewTitleEs(): ?string { return $this->newTitleEs; } public function setNewTitleEs(string $newTitleEs): self { $this->newTitleEs = $newTitleEs; return $this; } /** * @return Collection|Commentaire[] */ public function getCommentaires(): Collection { return $this->commentaires; } public function addCommentaire(Commentaire $commentaire): self { if (!$this->commentaires->contains($commentaire)) { $this->commentaires[] = $commentaire; $commentaire->addActualite($this); } return $this; } public function removeCommentaire(Commentaire $commentaire): self { if ($this->commentaires->contains($commentaire)) { $this->commentaires->removeElement($commentaire); $commentaire->removeActualite($this); } return $this; } public function getCover(): ?MediaObject { return $this->cover; } public function setCover(?MediaObject $cover): self { $this->cover = $cover; return $this; } public function getPicture1(): ?MediaObject { return $this->picture1; } public function setPicture1(?MediaObject $picture1): self { $this->picture1 = $picture1; return $this; } public function getPicture2(): ?MediaObject { return $this->picture2; } public function setPicture2(?MediaObject $picture2): self { $this->picture2 = $picture2; return $this; } public function getLiked(): ?int { return $this->liked; } public function setLiked(?int $liked): self { $this->liked = $liked; return $this; } public function getUnliked(): ?int { return $this->unliked; } public function setUnliked(?int $unliked): self { $this->unliked = $unliked; return $this; } /** * @return Collection|Visitor[] */ public function getVisitors(): Collection { return $this->visitors; } public function addVisitor(Visitor $visitor): self { if (!$this->visitors->contains($visitor)) { $this->visitors[] = $visitor; } return $this; } public function removeVisitor(Visitor $visitor): self { if ($this->visitors->contains($visitor)) { $this->visitors->removeElement($visitor); } return $this; } public function __toString() { // TODO: Implement __toString() method. return "(".$this->id.")". $this->newTitleEn; } }
Coded With 💗 by
0x6ick