summaryrefslogtreecommitdiff
path: root/protected/models/Verein.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-04-30 10:18:11 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-04-30 10:18:11 +0200
commitacec2b5dc35302147f9a9c73d837dce2f3f9958e (patch)
tree2f88a3a657a9211331e1e63e056a089189bd0dd2 /protected/models/Verein.php
parent56593a21209f3ce55fe66d303dbe01b8e081778b (diff)
parent148a216bba21cec1cbe07b60b5191791e0016d6f (diff)
Merge branch 'master' of ssh://proxy.ccwn.org:9044/home/ccwn/git-repos/admin.astaf.de
Diffstat (limited to 'protected/models/Verein.php')
-rw-r--r--protected/models/Verein.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/protected/models/Verein.php b/protected/models/Verein.php
index dba05db..83fc21f 100644
--- a/protected/models/Verein.php
+++ b/protected/models/Verein.php
@@ -33,7 +33,7 @@ class Verein extends CActiveRecord
*/
public function tableName()
{
- return 'verein';
+ return 'vereine';
}
/**
@@ -48,8 +48,8 @@ class Verein extends CActiveRecord
array('standort_id, published', 'numerical', 'integerOnly'=>true),
array('name, url', 'length', 'max'=>255),
array('bild, email, slug', 'length', 'max'=>100),
- array("url", "url", "allowEmpty"=>true, "message"=>"Die eingebene URL ist ung�ltig."),
- array("email", "email", "message"=>"Die eingebene eMail-Adresse ist ung�ltig."),
+ array("url", "url", "allowEmpty"=>true, "message"=>"Die eingebene URL ist ungültig."),
+ array("email", "email", "message"=>"Die eingebene eMail-Adresse ist ungültig."),
array("uploadedImage", "file", "types"=>"jpg, gif, png", "allowEmpty"=>true, "wrongType"=>'Die Datei "{file}" konnte nicht hochgeladen werden. Es sind nur Dateien mit den folgenden Endungen erlaubt: {extensions}.'),
array('kontaktdaten, beschreibung', 'safe'),
// The following rule is used by search().
@@ -116,4 +116,10 @@ class Verein extends CActiveRecord
'criteria'=>$criteria,
));
}
+
+ public function behaviors() {
+ return array(
+ 'LoggableBehavior'=>'application.modules.auditTrail.behaviors.LoggableBehavior',
+ );
+ }
} \ No newline at end of file