Rajout de l'export CSV
[zf2.biz/galerie.git] / module / Galerie / src / Galerie / Model / GalerieInfo.php
1 <?php
2
3 namespace Galerie\Model;
4
5 use Custom\Model\Entity;
6
7 class GalerieInfo extends Entity
8 {
9     public $id;
10     public $name;
11     public $description;
12     public $username;
13     public $nb;
14
15
16     protected $columns = array(
17         'id',
18         'name',
19         'description',
20         'username',
21         'nb',
22     );
23
24     protected $updatable_columns = array(
25     );
26
27     protected $primary_columns = array(
28     );
29
30     public function csvFormat()
31     {
32         return $this->id
33             . ';' . $this->name
34             . ';' . $this->description
35             . ';' . $this->username
36             . ';' . $this->nb;
37     }
38
39 }