Skip to content
Snippets Groups Projects

Sandbox fusion search result and print

Compare and
+ 885
75
Preferences
Compare changes
Files
<?php
/**
* Copyright (c) 2012-2014, 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 Admin_PrintController extends ZendAfi_Controller_Action {
use Trait_Translator;
public function getRessourceDefinitions() {
return [
'model' => [
'class' => 'Class_ModeleFusion',
'name' => 'modele_fusion',
'order' => 'id'],
'messages' => [
'successful_save' => $this->_('Modèle "%s" sauvegardé'),
'successful_add' => $this->_('Le modèle "%s" a été sauvegardé'),
'successful_delete' => $this->_('Modèle "%s" supprimé')],
'actions' => [
'add' => ['title' => $this->_("Ajouter un modèle")],
'edit' => ['title' => $this->_("Modifier le modèle: %s")]],
'form_class_name' => 'ZendAfi_Form_ModeleFusion',
'after_delete' => function() { $this->_redirect('/admin/print/index');},
'after_add' => function($modele) { $this->afterAdd($modele); }
];
}
public function indexAction() {
$this->view->titre=$this->view->_('Modèles d\'impressions');
$this->view->models= Class_ModeleFusion::findAll();
}
}
?>
\ No newline at end of file