|
|
@@ -62,6 +62,22 @@ class Project extends Model {
|
|
|
return Template::get($this->template_id);
|
|
|
}
|
|
|
|
|
|
+ public function getTimeOfDayText() {
|
|
|
+ switch($this->time_of_day) {
|
|
|
+ case "A": return "Anytime";
|
|
|
+ case "D": return "Daytime";
|
|
|
+ case "N": return "Nighttime";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getTimeOfDayIcon() {
|
|
|
+ switch($this->time_of_day) {
|
|
|
+ case "A": return "adjust";
|
|
|
+ case "D": return "sun";
|
|
|
+ case "N": return "moon";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
?>
|