diff options
Diffstat (limited to 'protected/models/Veranstaltung.php')
| -rw-r--r-- | protected/models/Veranstaltung.php | 4 |
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'))", ), ); |
