From 239c0068baa2d7f8544557feca928c26f7480243 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Tue, 27 Aug 2019 11:21:39 +0200
Subject: [PATCH] method per aggiugere estensione al filtro
---
src/Vola/UploadFile/FilterExt.class.php | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/Vola/UploadFile/FilterExt.class.php b/src/Vola/UploadFile/FilterExt.class.php
index a557613..fc5a483 100644
--- a/src/Vola/UploadFile/FilterExt.class.php
+++ b/src/Vola/UploadFile/FilterExt.class.php
@@ -20,8 +20,18 @@
{
$new = new stdClass();
$new->titolo = $this->titolo;
+
+ //riordino le chiavi
+ sort($this->extensions);
+
$new->extensions = implode(',', $this->extensions);
return json_encode($new);
}
+
+ public function addExt($newExt)
+ {
+ $this->extensions[$newExt] = $newExt;
+ return $this;
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0