summaryrefslogtreecommitdiff
path: root/protected/models/Veranstaltung.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2014-05-08 14:36:06 +0200
committerPatrick Seeger <pseeger@ccwn.org>2014-05-08 14:36:06 +0200
commit1605cc08545606471973f6be130afca015bb35fe (patch)
tree0e145401b8c09e55b27ad60f28798ca6c2aa2f17 /protected/models/Veranstaltung.php
parent94a8598fa257e8838e7761e0b003677c0bb908d2 (diff)
Ausblenden von alten Veranstaltungen und alte Dinge
Diffstat (limited to '')
-rw-r--r--protected/models/Veranstaltung.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/protected/models/Veranstaltung.php b/protected/models/Veranstaltung.php
index 60536cf..843d430 100644
--- a/protected/models/Veranstaltung.php
+++ b/protected/models/Veranstaltung.php
@@ -115,6 +115,7 @@ class Veranstaltung extends CActiveRecord
));
}
+
public function now()
{
@@ -155,6 +156,9 @@ class Veranstaltung extends CActiveRecord
),
'sorted'=>array(
'order'=>'startzeit ASC',
+ ),
+ 'thisYear'=>array(
+ 'condition'=>"startzeit > STR_TO_DATE('".Yii::app()->params['start_date']."',GET_FORMAT(DATE,'EUR'))",
),
);