Skip to content

Commit

Permalink
MINOR Changed top level name from AudienceType to AudienceTypeDefinit…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
yukiawano committed Jun 16, 2012
1 parent c886d21 commit 367bb0c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _config/audiencetype.yml.sample
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* AudienceType
* @package sscp
*/
class AudienceType extends Object {
class AudienceTypeDefinition extends Object {
static public $AudienceTypes;
static public $MatchingRule;
}
4 changes: 2 additions & 2 deletions code/audiencetype/AudienceTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/en/getting-started/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 367bb0c

Please sign in to comment.