summaryrefslogtreecommitdiff
path: root/protected/modules/cms/models/Sitecontent.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/modules/cms/models/Sitecontent.php')
-rw-r--r--protected/modules/cms/models/Sitecontent.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/protected/modules/cms/models/Sitecontent.php b/protected/modules/cms/models/Sitecontent.php
index bcd1385..e63ace2 100644
--- a/protected/modules/cms/models/Sitecontent.php
+++ b/protected/modules/cms/models/Sitecontent.php
@@ -89,4 +89,12 @@ class Sitecontent extends CActiveRecord
}
return parent::beforeSave();
}
+ public function scopes()
+ {
+ return array(
+ 'published'=>array(
+ 'condition'=>'1=1',
+ ),
+ );
+ }
}