summaryrefslogtreecommitdiff
path: root/app/Model/Color.php
blob: 8668cf0f3c7271b040baf9d839808ab39966379c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php

namespace Model;

/**
 * Color model (TODO: model for the future color picker)
 *
 * @package  model
 * @author   Frederic Guillot
 */
class Color extends Base
{
    /**
     * Get available colors
     *
     * @access public
     * @return array
     */
    public function getList()
    {
        return array(
            'yellow' => t('Yellow'),
            'blue' => t('Blue'),
            'green' => t('Green'),
            'purple' => t('Purple'),
            'red' => t('Red'),
            'orange' => t('Orange'),
            'grey' => t('Grey'),
        );
    }

    /**
     * Get the default color
     *
     * @access public
     * @return string
     */
    public function getDefaultColor()
    {
        return 'yellow'; // TODO: make this parameter configurable
    }
}