summaryrefslogtreecommitdiff
path: root/app/Model/Color.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-20 11:58:27 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-20 11:58:27 +0200
commit5f96af82f26967f4614b89322a82a59cb48bd2a3 (patch)
tree98f527458d27f325cec7419dbb033b8f9f5f8b20 /app/Model/Color.php
parent95e54d1d300809cb8656c52d029f797ba5961a04 (diff)
Split Task model into smaller classes
Diffstat (limited to 'app/Model/Color.php')
-rw-r--r--app/Model/Color.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/Model/Color.php b/app/Model/Color.php
new file mode 100644
index 00000000..f414e837
--- /dev/null
+++ b/app/Model/Color.php
@@ -0,0 +1,31 @@
+<?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'),
+ );
+ }
+}