Rajout d'un fil RSS
[zf2.biz/galerie.git] / module / Galerie / src / Galerie / Model / GalerieInfoRss.php
diff --git a/module/Galerie/src/Galerie/Model/GalerieInfoRss.php b/module/Galerie/src/Galerie/Model/GalerieInfoRss.php
new file mode 100644 (file)
index 0000000..4a9ef6c
--- /dev/null
@@ -0,0 +1,46 @@
+<?php
+
+namespace Galerie\Model;
+
+use Custom\Model\Entity;
+
+class GalerieInfoRss extends Entity
+{
+    public $id;
+    public $name;
+    public $description;
+    public $username;
+    public $nb;
+    public $created;
+    public $updated;
+
+
+    protected $columns = array(
+        'id',
+        'name',
+        'description',
+        'username',
+        'nb',
+        'created',
+        'updated',
+    );
+
+    protected $updatable_columns = array(
+    );
+
+    protected $primary_columns = array(
+    );
+
+    public function csvFormat()
+    {
+        return $this->id
+            . ';' . $this->name
+            . ';' . $this->description
+            . ';' . $this->username
+            . ';' . $this->nb
+            . ';' . $this->created
+            . ';' . $this->updated;
+    }
+
+}
+