From 9b6dee4b5e5894c0a4a8186b257254ba6e0a5b19 Mon Sep 17 00:00:00 2001
From: llaffont <llaffont@git-test.afi-sa.fr>
Date: Mon, 26 Aug 2013 12:21:33 +0000
Subject: [PATCH] Fichier oublier

---
 .gitattributes                              |  1 +
 library/ZendAfi/View/Helper/DivisionMap.php | 32 +++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 library/ZendAfi/View/Helper/DivisionMap.php

diff --git a/.gitattributes b/.gitattributes
index 82233aaf139..2a592318421 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2774,6 +2774,7 @@ library/ZendAfi/View/Helper/ComboProfils.php -text
 library/ZendAfi/View/Helper/CoreFiveFileInput.php -text
 library/ZendAfi/View/Helper/DatePicker.php -text
 library/ZendAfi/View/Helper/Division.php -text
+library/ZendAfi/View/Helper/DivisionMap.php -text
 library/ZendAfi/View/Helper/EnteteAvis.php -text
 library/ZendAfi/View/Helper/Error.php -text
 library/ZendAfi/View/Helper/Facettes.php -text
diff --git a/library/ZendAfi/View/Helper/DivisionMap.php b/library/ZendAfi/View/Helper/DivisionMap.php
new file mode 100644
index 00000000000..ea4416c30d2
--- /dev/null
+++ b/library/ZendAfi/View/Helper/DivisionMap.php
@@ -0,0 +1,32 @@
+<?php
+/**
+ * Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved.
+ *
+ * AFI-OPAC 2.0 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).
+ *
+ * AFI-OPAC 2.0 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 AFI-OPAC 2.0; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA 
+ */
+
+
+class ZendAfi_View_Helper_DivisionMap extends Zend_View_Helper_HtmlElement {
+	public function divisionMap($profil, $mapping) {
+		$html = '';
+		foreach($mapping as $division => $css_class)
+			$html .= $this->view->division($profil, $division, $css_class);
+		return $html;
+	}
+}
+
+?>
-- 
GitLab