Permalink
Browse files

MINOR Changed top level name from AudienceType to AudienceTypeDefinit…

…ion.
  • Loading branch information...
1 parent c886d21 commit 367bb0c59f10e9d539cf0ed44225266c0f66149e @yukiawano committed Jun 16, 2012
View
2 _config/audiencetype.yml.sample
@@ -1,6 +1,6 @@
# Copy this yaml file to mysite/_config/audiencetype.yml and define your setting of AudienceType
# This file is a sample of defining audience type and if you don't need this, you can delete this file.
-AudienceType:
+AudienceTypeDefinition:
MatchingRule: InclusiveOR
AudienceTypes:
NewComer:
View
2 code/audiencetype/AudienceType.php → code/audiencetype/AudienceTypeDefinition.php
@@ -3,7 +3,7 @@
* AudienceType
* @package sscp
*/
-class AudienceType extends Object {
+class AudienceTypeDefinition extends Object {
static public $AudienceTypes;
static public $MatchingRule;
}
View
4 code/audiencetype/AudienceTypeLoader.php
@@ -5,8 +5,8 @@
*/
class AudienceTypeLoader{
public function load(){
- $audienceTypes = Config::inst()->get("AudienceType", "AudienceTypes");
- $matchingRule = Config::inst()->get("AudienceType", "MatchingRule");
+ $audienceTypes = Config::inst()->get("AudienceTypeDefinition", "AudienceTypes");
+ $matchingRule = Config::inst()->get("AudienceTypeDefinition", "MatchingRule");
return array($matchingRule => $audienceTypes);
}
View
2 docs/en/getting-started/getting-started.md
@@ -49,7 +49,7 @@ An AudienceType is a collection of [conditions](https://github.com/yukiawano/ssc
You can define AudienceTypes in YAML like this:
```
-AudienceType:
+AudienceTypeDefinition:
MatchingRule: InclusiveOR
AudienceTypes:
NewComer:

0 comments on commit 367bb0c

Please sign in to comment.