Commit 19620b1b authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

Implémentation de ressourceIntergace pour Macro et Content

parent 720e1227
Pipeline #10837 passed with stage
in 28 seconds
...@@ -4,10 +4,23 @@ namespace UnicaenRenderer\Entity\Db; ...@@ -4,10 +4,23 @@ namespace UnicaenRenderer\Entity\Db;
use UnicaenUtilisateur\Entity\HistoriqueAwareInterface; use UnicaenUtilisateur\Entity\HistoriqueAwareInterface;
use UnicaenUtilisateur\Entity\HistoriqueAwareTrait; use UnicaenUtilisateur\Entity\HistoriqueAwareTrait;
use Zend\Permissions\Acl\Resource\ResourceInterface;
class Content implements HistoriqueAwareInterface { class Content implements HistoriqueAwareInterface, ResourceInterface
{
use HistoriqueAwareTrait; use HistoriqueAwareTrait;
const RESOURCE_ID = 'Content';
/**
* Returns the string identifier of the Resource
*
* @return string
*/
public function getResourceId()
{
return self::RESOURCE_ID;
}
const TYPE_TXT = 'texte'; const TYPE_TXT = 'texte';
const TYPE_PDF = 'pdf'; const TYPE_PDF = 'pdf';
const TYPE_MAIL = 'mail'; const TYPE_MAIL = 'mail';
......
...@@ -4,10 +4,23 @@ namespace UnicaenRenderer\Entity\Db; ...@@ -4,10 +4,23 @@ namespace UnicaenRenderer\Entity\Db;
use UnicaenUtilisateur\Entity\HistoriqueAwareInterface; use UnicaenUtilisateur\Entity\HistoriqueAwareInterface;
use UnicaenUtilisateur\Entity\HistoriqueAwareTrait; use UnicaenUtilisateur\Entity\HistoriqueAwareTrait;
use Zend\Permissions\Acl\Resource\ResourceInterface;
class Macro implements HistoriqueAwareInterface { class Macro implements HistoriqueAwareInterface , ResourceInterface
{
use HistoriqueAwareTrait; use HistoriqueAwareTrait;
const RESOURCE_ID = 'Macro';
/**
* Returns the string identifier of the Resource
*
* @return string
*/
public function getResourceId()
{
return self::RESOURCE_ID;
}
/** @var integer */ /** @var integer */
private $id; private $id;
/** @var string */ /** @var string */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment