Rajout d'un diagramme (galerie/pie pour index)
[zf2.biz/galerie.git] / module / Galerie / src / Galerie / Graph / Test.php
1 <?php
2
3 /**
4  * Core Application.
5  *
6  * PHP version 5.3
7  *
8  * @category  Core
9  * @package   Core_View_Test
10  * @author    Stéphane Ciaravolo <stephane.ciaravolo@finances.gouv.fr>
11  * @author    Sébastien Chazallet <sebastien.chazallet@laposte.net>
12  * @copyright 2011 DGFiP
13  * @license   GNU GPL http://www.gnu.org/licenses/gpl.html
14  * @link      http://core.noisiel.dgfip
15  * @since     0.0.0.alpha1
16  *
17  */
18
19 namespace Galerie\Graph;
20
21 use Custom\Graph\Pie;
22
23 /**
24  * Cette vue peut écrire dans une image pour générer un diagramme de Gantt.
25  *
26  * @category  Core
27  * @package   Core_View_Test
28  * @author    Stéphane Ciaravolo <stephane.ciaravolo@finances.gouv.fr>
29  * @author    Sébastien Chazallet <sebastien.chazallet@laposte.net>
30  * @copyright 2011 DGFiP
31  * @license   GNU GPL http://www.gnu.org/licenses/gpl.html
32  * @link      http://core.noisiel.dgfip
33  * @since     0.0.0.alpha1
34  *
35  */
36 class Test extends Pie
37 {
38
39     protected $title = "Nombre de photos par galerie";
40
41     /**
42      * On surcharge cette propriété afin d'avoir un graphique 3D
43      * @var int
44      */
45     protected $dim3D = true;
46
47
48     /**
49      * On définit le fait que certaines données doivent être mises en évidence.
50      *
51      * @see Coresocle_View_Statgraph_Default::getSlices
52      *
53      * @return array
54      */
55     public function getSlices()
56     {
57         return array(0);
58     }
59
60     /**
61      * On définit un nouveau format pour rajouter un mot après le chiffre
62      *
63      * @see Coresocle_View_Statgraph_Default::getFormat
64      *
65      * @return array
66      */
67     public function getFormat()
68     {
69         return '%d photos';
70     }
71
72 }