aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorMaZderMind2016-12-08 22:38:46 +0100
committerMaZderMind2016-12-08 22:38:46 +0100
commit521f0e2e1c94538fdce65a021144180f368364d9 (patch)
treece695aba495f2e51c4420349f9496138857ab9e0 /model
parent6190c814026b007bb8ba0276c89414517ee3436e (diff)
add dash tab (with dummy content)
Diffstat (limited to '')
-rw-r--r--model/Room.php10
-rw-r--r--model/RoomTab.php3
2 files changed, 13 insertions, 0 deletions
diff --git a/model/Room.php b/model/Room.php
index df3d92c..3baa0cf 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -174,6 +174,10 @@ class Room extends ModelBase
return $this->get('ROOMS.'.$this->getSlug().'.MUSIC');
}
+ public function hasDash() {
+ return $this->get('ROOMS.'.$this->getSlug().'.DASH');
+ }
+
public function hasTranslation() {
return $this->get('ROOMS.'.$this->getSlug().'.TRANSLATION');
}
@@ -196,6 +200,9 @@ class Room extends ModelBase
if($this->hasMusic())
$selections[] = 'music';
+ if($this->hasDash())
+ $selections[] = 'dash';
+
return $selections;
}
@@ -214,6 +221,9 @@ class Room extends ModelBase
if($this->hasMusic())
$tabs[] = 'music';
+ if($this->hasDash())
+ $tabs[] = 'dash';
+
return $tabs;
}
diff --git a/model/RoomTab.php b/model/RoomTab.php
index 16a8359..dfe6e84 100644
--- a/model/RoomTab.php
+++ b/model/RoomTab.php
@@ -35,6 +35,9 @@ class RoomTab
case 'music':
return 'Radio';
+ case 'dash':
+ return 'DASH (beta)';
+
default:
return ucfirst($tab);
}