From 68308abf13771e00ea481dfbb9359cc5063cf99c Mon Sep 17 00:00:00 2001
From: llaffont <llaffont@afi-sa.fr>
Date: Sat, 11 Jul 2015 17:15:39 +0200
Subject: [PATCH] dev #24821 valence user notices

implements notifications for Aloes
---
 .../WebService/SIGB/Opsys/Reservation.php     | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 library/Class/WebService/SIGB/Opsys/Reservation.php

diff --git a/library/Class/WebService/SIGB/Opsys/Reservation.php b/library/Class/WebService/SIGB/Opsys/Reservation.php
new file mode 100644
index 00000000000..e75be95cf7b
--- /dev/null
+++ b/library/Class/WebService/SIGB/Opsys/Reservation.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Copyright (c) 2012, 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 Class_WebService_SIGB_Opsys_Reservation extends Class_WebService_SIGB_Reservation {
+  public function onParseAttributes() {
+    parent::onParseAttributes();
+    if (false !== strpos($this->getEtat(), 'Document rendu'))
+      $this->setWaitingToBePulled();
+  }
+}
+
+?>
\ No newline at end of file
-- 
GitLab