Skip to content

Commit

Permalink
Merge pull request #16 from tractorcow/3.1-static-update
Browse files Browse the repository at this point in the history
API 3.1 compatibility: Static configurable properties must be private and immutable.
  • Loading branch information
Julian Seidenberg committed May 12, 2013
2 parents 72ca292 + b6d8e82 commit e833f22
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/GoogleAnalyzer.php
Expand Up @@ -12,7 +12,7 @@ class GoogleAnalyzer extends DataExtension {
public static $email; public static $email;
public static $password; public static $password;


static $has_many = array( private static $has_many = array(
'Events' => 'GoogleLogEvent', 'Events' => 'GoogleLogEvent',
); );


Expand Down
2 changes: 1 addition & 1 deletion code/GoogleCachedQuery.php
Expand Up @@ -2,7 +2,7 @@


class GoogleCachedQuery extends DataObject { class GoogleCachedQuery extends DataObject {


static $db = array( private static $db = array(
'Hash' => 'Varchar(255)', 'Hash' => 'Varchar(255)',
'Data' => 'Text', 'Data' => 'Text',
); );
Expand Down
2 changes: 1 addition & 1 deletion code/GoogleConfig.php
Expand Up @@ -5,7 +5,7 @@
*/ */
class GoogleConfig extends DataExtension { class GoogleConfig extends DataExtension {


static $db = array( private static $db = array(
'GoogleAnalyticsCode' => 'Varchar', 'GoogleAnalyticsCode' => 'Varchar',
'GoogleAnalyticsProfileId' => 'Varchar(255)', 'GoogleAnalyticsProfileId' => 'Varchar(255)',
'GoogleAnalyticsEmail' => 'Varchar', 'GoogleAnalyticsEmail' => 'Varchar',
Expand Down
4 changes: 2 additions & 2 deletions code/GoogleLogEvent.php
Expand Up @@ -2,12 +2,12 @@


class GoogleLogEvent extends DataObject { class GoogleLogEvent extends DataObject {


static $db = array( private static $db = array(
'Title' => 'Varchar', 'Title' => 'Varchar',
'Description' => 'Text', 'Description' => 'Text',
); );


static $has_one = array( private static $has_one = array(
'Page' => 'SiteTree', 'Page' => 'SiteTree',
); );
} }

0 comments on commit e833f22

Please sign in to comment.