Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
renderer
Commits
19620b1b
Commit
19620b1b
authored
Sep 24, 2021
by
Thibaut Vallee
Browse files
Implémentation de ressourceIntergace pour Macro et Content
parent
720e1227
Pipeline
#10837
passed with stage
in 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenRenderer/Entity/Db/Content.php
View file @
19620b1b
...
...
@@ -4,10 +4,23 @@ namespace UnicaenRenderer\Entity\Db;
use
UnicaenUtilisateur\Entity\HistoriqueAwareInterface
;
use
UnicaenUtilisateur\Entity\HistoriqueAwareTrait
;
use
Zend\Permissions\Acl\Resource\ResourceInterface
;
class
Content
implements
HistoriqueAwareInterface
{
class
Content
implements
HistoriqueAwareInterface
,
ResourceInterface
{
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_PDF
=
'pdf'
;
const
TYPE_MAIL
=
'mail'
;
...
...
src/UnicaenRenderer/Entity/Db/Macro.php
View file @
19620b1b
...
...
@@ -4,10 +4,23 @@ namespace UnicaenRenderer\Entity\Db;
use
UnicaenUtilisateur\Entity\HistoriqueAwareInterface
;
use
UnicaenUtilisateur\Entity\HistoriqueAwareTrait
;
use
Zend\Permissions\Acl\Resource\ResourceInterface
;
class
Macro
implements
HistoriqueAwareInterface
{
class
Macro
implements
HistoriqueAwareInterface
,
ResourceInterface
{
use
HistoriqueAwareTrait
;
const
RESOURCE_ID
=
'Macro'
;
/**
* Returns the string identifier of the Resource
*
* @return string
*/
public
function
getResourceId
()
{
return
self
::
RESOURCE_ID
;
}
/** @var integer */
private
$id
;
/** @var string */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment