mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
generate document with relatorio: config and driver
This commit is contained in:
@@ -25,7 +25,7 @@ use Symfony\Component\Serializer\Annotation as Serializer;
|
||||
class DocGeneratorTemplate
|
||||
{
|
||||
/**
|
||||
* @ORM\Column(type="boolean", options={"default":true})
|
||||
* @ORM\Column(type="boolean", options={"default": true})
|
||||
*/
|
||||
private bool $active = true;
|
||||
|
||||
@@ -48,16 +48,9 @@ class DocGeneratorTemplate
|
||||
/**
|
||||
* Class name of the entity for which this template can be used.
|
||||
*
|
||||
* @ORM\Column(type="string", options={"default":""})
|
||||
* @ORM\Column(type="string", options={"default": ""})
|
||||
*/
|
||||
private string $entity = "";
|
||||
|
||||
/**
|
||||
* Options for the template
|
||||
*
|
||||
* @ORM\Column(type="json", name="template_options", options={"default":"[]"})
|
||||
*/
|
||||
private array $options = [];
|
||||
private string $entity = '';
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity=StoredObject::class, cascade={"persist"}))
|
||||
@@ -78,17 +71,12 @@ class DocGeneratorTemplate
|
||||
*/
|
||||
private array $name = [];
|
||||
|
||||
public function isActive(): bool
|
||||
{
|
||||
return $this->active;
|
||||
}
|
||||
|
||||
public function setActive(bool $active): DocGeneratorTemplate
|
||||
{
|
||||
$this->active = $active;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Options for the template.
|
||||
*
|
||||
* @ORM\Column(type="json", name="template_options", options={"default":"[]"})
|
||||
*/
|
||||
private array $options = [];
|
||||
|
||||
public function getContext(): ?string
|
||||
{
|
||||
@@ -100,6 +88,11 @@ class DocGeneratorTemplate
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
public function getEntity(): string
|
||||
{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
public function getFile(): ?StoredObject
|
||||
{
|
||||
return $this->file;
|
||||
@@ -115,6 +108,23 @@ class DocGeneratorTemplate
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getOptions(): array
|
||||
{
|
||||
return $this->options;
|
||||
}
|
||||
|
||||
public function isActive(): bool
|
||||
{
|
||||
return $this->active;
|
||||
}
|
||||
|
||||
public function setActive(bool $active): DocGeneratorTemplate
|
||||
{
|
||||
$this->active = $active;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setContext(string $context): self
|
||||
{
|
||||
$this->context = $context;
|
||||
@@ -129,6 +139,13 @@ class DocGeneratorTemplate
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setEntity(string $entity): self
|
||||
{
|
||||
$this->entity = $entity;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setFile(StoredObject $file): self
|
||||
{
|
||||
$this->file = $file;
|
||||
@@ -143,23 +160,6 @@ class DocGeneratorTemplate
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEntity(): string
|
||||
{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
public function setEntity(string $entity): self
|
||||
{
|
||||
$this->entity = $entity;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getOptions(): array
|
||||
{
|
||||
return $this->options;
|
||||
}
|
||||
|
||||
public function setOptions(array $options): self
|
||||
{
|
||||
$this->options = $options;
|
||||
|
Reference in New Issue
Block a user