ninegate
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
namespace App\Entity;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
@ -79,6 +80,13 @@ class Widget
|
||||
*/
|
||||
protected $opened;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*
|
||||
* @ORM\Column(name="viewheader", type="boolean", options={"default":true})
|
||||
*/
|
||||
protected $viewheader;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
@ -135,6 +143,11 @@ class Widget
|
||||
*/
|
||||
private $pagewidgets;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->pagewidgets = new ArrayCollection();
|
||||
}
|
||||
|
||||
// A garder pour forcer l'id en init
|
||||
public function setId($id)
|
||||
{
|
||||
@ -143,426 +156,230 @@ class Widget
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->pagewidgets = new \Doctrine\Common\Collections\ArrayCollection();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set roworder.
|
||||
*
|
||||
* @param int $roworder
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setRoworder($roworder)
|
||||
public function getRoworder(): ?int
|
||||
{
|
||||
return $this->roworder;
|
||||
}
|
||||
|
||||
public function setRoworder(int $roworder): self
|
||||
{
|
||||
$this->roworder = $roworder;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get roworder.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getRoworder()
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->roworder;
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set name.
|
||||
*
|
||||
* @param string $name
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setName($name)
|
||||
public function setName(string $name): self
|
||||
{
|
||||
$this->name = $name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
public function getDescription(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set description.
|
||||
*
|
||||
* @param string $description
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setDescription($description)
|
||||
public function setDescription(?string $description): self
|
||||
{
|
||||
$this->description = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get description.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
public function getRouteview(): ?string
|
||||
{
|
||||
return $this->description;
|
||||
return $this->routeview;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set routeview.
|
||||
*
|
||||
* @param string $routeview
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setRouteview($routeview)
|
||||
public function setRouteview(string $routeview): self
|
||||
{
|
||||
$this->routeview = $routeview;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get routeview.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRouteview()
|
||||
{
|
||||
return $this->routeview;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set height.
|
||||
*
|
||||
* @param int $height
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setHeight($height)
|
||||
{
|
||||
$this->height = $height;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get height.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getHeight()
|
||||
public function getHeight(): ?int
|
||||
{
|
||||
return $this->height;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set autoajust.
|
||||
*
|
||||
* @param bool $autoajust
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setAutoajust($autoajust)
|
||||
public function setHeight(int $height): self
|
||||
{
|
||||
$this->autoajust = $autoajust;
|
||||
$this->height = $height;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get autoajust.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getAutoajust()
|
||||
{
|
||||
return $this->autoajust;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set border.
|
||||
*
|
||||
* @param bool $border
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setBorder($border)
|
||||
{
|
||||
$this->border = $border;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get border.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getBorder()
|
||||
{
|
||||
return $this->border;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set opened.
|
||||
*
|
||||
* @param bool $opened
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setOpened($opened)
|
||||
{
|
||||
$this->opened = $opened;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get opened.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getOpened()
|
||||
{
|
||||
return $this->opened;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set colorheaderback.
|
||||
*
|
||||
* @param string $colorheaderback
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setColorheaderback($colorheaderback)
|
||||
{
|
||||
$this->colorheaderback = $colorheaderback;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get colorheaderback.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getColorheaderback()
|
||||
{
|
||||
return $this->colorheaderback;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set colorheaderfont.
|
||||
*
|
||||
* @param string $colorheaderfont
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setColorheaderfont($colorheaderfont)
|
||||
{
|
||||
$this->colorheaderfont = $colorheaderfont;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get colorheaderfont.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getColorheaderfont()
|
||||
{
|
||||
return $this->colorheaderfont;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set colorbodyback.
|
||||
*
|
||||
* @param string $colorbodyback
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setColorbodyback($colorbodyback)
|
||||
{
|
||||
$this->colorbodyback = $colorbodyback;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get colorbodyback.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getColorbodyback()
|
||||
{
|
||||
return $this->colorbodyback;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set colorbodyfont.
|
||||
*
|
||||
* @param string $colorbodyfont
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setColorbodyfont($colorbodyfont)
|
||||
{
|
||||
$this->colorbodyfont = $colorbodyfont;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get colorbodyfont.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getColorbodyfont()
|
||||
{
|
||||
return $this->colorbodyfont;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set access.
|
||||
*
|
||||
* @param string $access
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setAccess($access)
|
||||
{
|
||||
$this->access = $access;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get access.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccess()
|
||||
{
|
||||
return $this->access;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set parameter.
|
||||
*
|
||||
* @param array $parameter
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setParameter($parameter)
|
||||
{
|
||||
$this->parameter = $parameter;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get parameter.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getParameter()
|
||||
{
|
||||
return $this->parameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set icon.
|
||||
*
|
||||
* @param Icon $icon
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function setIcon(Icon $icon = null)
|
||||
{
|
||||
$this->icon = $icon;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get icon.
|
||||
*
|
||||
* @return Icon
|
||||
*/
|
||||
public function getIcon()
|
||||
{
|
||||
return $this->icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add pagewidget.
|
||||
*
|
||||
* @return Widget
|
||||
*/
|
||||
public function addPagewidget(Pagewidget $pagewidget)
|
||||
{
|
||||
$this->pagewidgets[] = $pagewidget;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove pagewidget.
|
||||
*/
|
||||
public function removePagewidget(Pagewidget $pagewidget)
|
||||
{
|
||||
$this->pagewidgets->removeElement($pagewidget);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get pagewidgets.
|
||||
*
|
||||
* @return \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
public function getPagewidgets()
|
||||
{
|
||||
return $this->pagewidgets;
|
||||
}
|
||||
|
||||
public function isAutoajust(): ?bool
|
||||
{
|
||||
return $this->autoajust;
|
||||
}
|
||||
|
||||
public function setAutoajust(bool $autoajust): self
|
||||
{
|
||||
$this->autoajust = $autoajust;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isBorder(): ?bool
|
||||
{
|
||||
return $this->border;
|
||||
}
|
||||
|
||||
public function setBorder(bool $border): self
|
||||
{
|
||||
$this->border = $border;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isOpened(): ?bool
|
||||
{
|
||||
return $this->opened;
|
||||
}
|
||||
|
||||
public function setOpened(bool $opened): self
|
||||
{
|
||||
$this->opened = $opened;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isViewheader(): ?bool
|
||||
{
|
||||
return $this->viewheader;
|
||||
}
|
||||
|
||||
public function setViewheader(bool $viewheader): self
|
||||
{
|
||||
$this->viewheader = $viewheader;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getColorheaderback(): ?string
|
||||
{
|
||||
return $this->colorheaderback;
|
||||
}
|
||||
|
||||
public function setColorheaderback(?string $colorheaderback): self
|
||||
{
|
||||
$this->colorheaderback = $colorheaderback;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getColorheaderfont(): ?string
|
||||
{
|
||||
return $this->colorheaderfont;
|
||||
}
|
||||
|
||||
public function setColorheaderfont(?string $colorheaderfont): self
|
||||
{
|
||||
$this->colorheaderfont = $colorheaderfont;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getColorbodyback(): ?string
|
||||
{
|
||||
return $this->colorbodyback;
|
||||
}
|
||||
|
||||
public function setColorbodyback(?string $colorbodyback): self
|
||||
{
|
||||
$this->colorbodyback = $colorbodyback;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getColorbodyfont(): ?string
|
||||
{
|
||||
return $this->colorbodyfont;
|
||||
}
|
||||
|
||||
public function setColorbodyfont(?string $colorbodyfont): self
|
||||
{
|
||||
$this->colorbodyfont = $colorbodyfont;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAccess(): array
|
||||
{
|
||||
return $this->access;
|
||||
}
|
||||
|
||||
public function setAccess(?array $access): self
|
||||
{
|
||||
$this->access = $access;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getParameter(): array
|
||||
{
|
||||
return $this->parameter;
|
||||
}
|
||||
|
||||
public function setParameter(?array $parameter): self
|
||||
{
|
||||
$this->parameter = $parameter;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getIcon(): ?Icon
|
||||
{
|
||||
return $this->icon;
|
||||
}
|
||||
|
||||
public function setIcon(?Icon $icon): self
|
||||
{
|
||||
$this->icon = $icon;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Collection<int, Pagewidget>
|
||||
*/
|
||||
public function getPagewidgets(): Collection
|
||||
{
|
||||
return $this->pagewidgets;
|
||||
}
|
||||
|
||||
public function addPagewidget(Pagewidget $pagewidget): self
|
||||
{
|
||||
if (!$this->pagewidgets->contains($pagewidget)) {
|
||||
$this->pagewidgets->add($pagewidget);
|
||||
$pagewidget->setWidget($this);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function removePagewidget(Pagewidget $pagewidget): self
|
||||
{
|
||||
if ($this->pagewidgets->removeElement($pagewidget)) {
|
||||
// set the owning side to null (unless already changed)
|
||||
if ($pagewidget->getWidget() === $this) {
|
||||
$pagewidget->setWidget(null);
|
||||
}
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user