diff --git a/FEATURES/65265 b/FEATURES/65265 index 59abe2a1cb31f483efa6451d3acf1b0564a6611f..f8a1fc229c9b97737359e017b973de0886ae8723 100644 --- a/FEATURES/65265 +++ b/FEATURES/65265 @@ -1,10 +1,10 @@ '65265' => - ['Label' => $this->_('Versionning des articles en Front'), - 'Desc' => '', + ['Label' => $this->_('Historique des modifications des articles en Front'), + 'Desc' => $this->_('Vous pouvez accéder à l\'historique des modifications d\'un article directement à partir des boites article ou calendrier'), 'Image' => '', 'Video' => '', - 'Category' => '', - 'Right' => '', - 'Wiki' => '', + 'Category' => $this->_('Administration'), + 'Right' => function($feature_description, $user) {return $user->canAccessBackend();}, + 'Wiki' => 'http://wiki.bokeh-library-portal.org/index.php?title=Articles_-_Cr%C3%A9er,_r%C3%A9diger_et_ordonner#Historique_des_versions', 'Test' => '', - 'Date' => '2017-10-02'] \ No newline at end of file + 'Date' => '2017-10-02'], \ No newline at end of file diff --git a/VERSIONS_WIP/65265 b/VERSIONS_WIP/65265 index 08814730204927e0ce4b6035979e7bcacfb3890a..65ae088477e3000451433034e9d683c3d91e368c 100644 --- a/VERSIONS_WIP/65265 +++ b/VERSIONS_WIP/65265 @@ -1 +1 @@ - - ticket #65265 : Versionning des articles en Front \ No newline at end of file + - ticket #65265 : Administration : Vous pouvez accéder à l'historique des modifications d'un article directement à partir des boites article ou calendrier en front \ No newline at end of file diff --git a/library/ZendAfi/Controller/Plugin/Versionning/Abstract.php b/library/ZendAfi/Controller/Plugin/Versionning/Abstract.php index 459fa58800926d802038980f670c952400c63cfb..6ad1408c7f704a8c11f7e0ca77dcbc5eecf87f98 100644 --- a/library/ZendAfi/Controller/Plugin/Versionning/Abstract.php +++ b/library/ZendAfi/Controller/Plugin/Versionning/Abstract.php @@ -126,32 +126,15 @@ abstract class ZendAfi_Controller_Plugin_Versionning_Abstract } - protected function _loadModel() { - return; - } - - - protected function _modelLabel($model) { - return ''; - } - - - protected function _versionsFor($model) { - return null; - } - - - protected function _forwardToEdit($model) { + abstract protected function _loadModel(); - } + abstract protected function _modelLabel($model); + abstract protected function _versionsFor($model); - protected function _versionUrl($model) { - return ''; - } + abstract protected function _forwardToEdit($model); + abstract protected function _versionUrl($model); - protected function _editUrl($model) { - return ''; - } + abstract protected function _editUrl($model); }