diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2014-06-20 14:56:18 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2014-06-20 14:56:18 +0200 |
| commit | b53f83a45b9ce727a45b374a01fa9022307a2e9f (patch) | |
| tree | d2e8a7d2a02e5cfe99d3b0b52d8158ceef03b540 /protected/components/Format.php | |
| parent | 39a15dfd7ab12e5e74dce97a5d10c254647d5dbd (diff) | |
Anzeige von Bühnen um Hinweis auf Folgetag optimiert.
Diffstat (limited to 'protected/components/Format.php')
| -rw-r--r-- | protected/components/Format.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/protected/components/Format.php b/protected/components/Format.php index 8a80768..91ac90e 100644 --- a/protected/components/Format.php +++ b/protected/components/Format.php @@ -33,4 +33,14 @@ class Format { } return null; } + + public static function displayDateForLists($value) { + if(Yii::app()->dateFormatter->format('HH',$value->startzeit) < 4) + { + return "<strong>".Yii::app()->dateFormatter->format('EEEE',$value->startzeit)."</strong><br />". + Yii::app()->dateFormatter->format('HH:mm',$value->startzeit)." Uhr"; + } else{ + return Yii::app()->dateFormatter->format('HH:mm',$value->startzeit)." Uhr"; + } + } } |
