Skip to content
Snippets Groups Projects
Commit 66b7a26d authored by Ghislain Loas's avatar Ghislain Loas
Browse files

migrate album resource definition to plugin

parent 052d7a4f
Branches
Tags
5 merge requests!2080Sandbox detach zf from storm,!2061Master,!1989Dev#45275 3155 contractuel application nouvelle methode d edition par lot des articles aux collections,!1968full plugin mod for multiselection,!1959Dev#45275 3155 contractuel application nouvelle methode d edition par lot des articles aux collections
Pipeline #164 failed with stage
in 7 minutes and 43 seconds
......@@ -20,16 +20,9 @@
*/
class Admin_AlbumController extends ZendAfi_Controller_Action {
public function getRessourceDefinitions() {
return ['model' => ['class' => 'Class_Album',
'name' => 'album',
'order' => 'libelle',
'model_id' => 'id']];
}
public function getPlugins() {
return ['ZendAfi_Controller_Plugin_Manager_Album',
return ['ZendAfi_Controller_Plugin_ResourceDefinition_Album',
'ZendAfi_Controller_Plugin_Manager_Album',
'ZendAfi_Controller_Plugin_MultiSelection_Album'];
}
......
<?php
/**
* Copyright (c) 2012-2017, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* BOKEH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_Controller_Plugin_ResourceDefinition_Album extends ZendAfi_Controller_Plugin_ResourceDefinition_Abstract {
public function getDefinitions() {
return ['model' => ['class' => 'Class_Album',
'name' => 'album',
'order' => 'libelle',
'model_id' => 'id']];
}
}
?>
\ No newline at end of file
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