Fixing further statics for 3.1 compatibility

This commit is contained in:
Sean Harvey 2013-04-05 11:20:03 +13:00
parent 95c8a8490c
commit 3c286381ec
9 changed files with 49 additions and 49 deletions

View File

@ -16,7 +16,7 @@ class TrackBackDecorator extends DataExtension {
// );
// }
static $has_many = array(
private static $has_many = array(
'TrackBackURLs' => 'TrackBackURL',
'TrackBacks' => 'TrackBackPing'
);

View File

@ -1,7 +1,7 @@
<?php
class TrackBackPing extends DataObject {
static $db = array(
private static $db = array(
'Title' => 'Varchar',
'Excerpt' => 'Text',
// 2083 is URL-length limit for IE, AFAIK.
@ -10,15 +10,15 @@ class TrackBackPing extends DataObject {
'BlogName' => 'Varchar'
);
static $has_one = array(
private static $has_one = array(
'Page' => 'Page'
);
static $has_many = array();
private static $has_many = array();
static $many_many = array();
private static $many_many = array();
static $belongs_many_many = array();
private static $belongs_many_many = array();
}
?>

View File

@ -1,12 +1,12 @@
<?php
class TrackBackURL extends DataObject {
static $db = array(
private static $db = array(
'URL' => 'Varchar(2048)',
'Pung' => 'Boolean(0)'
);
static $has_one = array(
private static $has_one = array(
'BlogEntry' => 'BlogEntry'
);
@ -52,4 +52,4 @@ class TrackBackURL extends DataObject {
return false;
}
}
}

View File

@ -6,27 +6,27 @@
* @package blog
*/
class ArchiveWidget extends Widget {
static $db = array(
private static $db = array(
'DisplayMode' => 'Varchar'
);
static $has_one = array();
private static $has_one = array();
static $has_many = array();
private static $has_many = array();
static $many_many = array();
private static $many_many = array();
static $belongs_many_many = array();
private static $belongs_many_many = array();
static $defaults = array(
private static $defaults = array(
'DisplayMode' => 'month'
);
static $title = 'Browse by Date';
private static $title = 'Browse by Date';
static $cmsTitle = 'Blog Archive';
private static $cmsTitle = 'Blog Archive';
static $description = 'Show a list of months or years in which there are blog posts, and provide links to them.';
private static $description = 'Show a list of months or years in which there are blog posts, and provide links to them.';
function getCMSFields() {
$fields = parent::getCMSFields();

View File

@ -4,21 +4,21 @@
* @package blog
*/
class BlogManagementWidget extends Widget implements PermissionProvider {
static $db = array();
private static $db = array();
static $has_one = array();
private static $has_one = array();
static $has_many = array();
private static $has_many = array();
static $many_many = array();
private static $many_many = array();
static $belongs_many_many = array();
private static $belongs_many_many = array();
static $defaults = array();
private static $defaults = array();
static $title = "Blog Management";
static $cmsTitle = "Blog Management";
static $description = "Provide a number of links useful for administering a blog. Only shown if the user is an admin.";
private static $title = "Blog Management";
private static $cmsTitle = "Blog Management";
private static $description = "Provide a number of links useful for administering a blog. Only shown if the user is an admin.";
function CommentText() {

View File

@ -2,6 +2,6 @@
class BlogTreeExtension extends DataExtension {
static $has_one = array("SideBar" => "WidgetArea");
private static $has_one = array("SideBar" => "WidgetArea");
}
}

View File

@ -1,26 +1,26 @@
<?php
class RSSWidget extends Widget {
static $db = array(
private static $db = array(
"RSSTitle" => "Text",
"RssUrl" => "Text",
"NumberToShow" => "Int"
);
static $has_one = array();
private static $has_one = array();
static $has_many = array();
private static $has_many = array();
static $many_many = array();
private static $many_many = array();
static $belongs_many_many = array();
private static $belongs_many_many = array();
static $defaults = array(
private static $defaults = array(
"NumberToShow" => 10,
"RSSTitle" => 'RSS Feed'
);
static $cmsTitle = "RSS Feed";
static $description = "Downloads another page's RSS feed and displays items in a list.";
private static $cmsTitle = "RSS Feed";
private static $description = "Downloads another page's RSS feed and displays items in a list.";
/**
* If the RssUrl is relative, convert it to absolute with the

View File

@ -9,11 +9,11 @@
*/
class SubscribeRSSWidget extends Widget {
static $title = 'Subscribe via RSS';
private static $title = 'Subscribe via RSS';
static $cmsTitle = 'Subscribe via RSS widget';
private static $cmsTitle = 'Subscribe via RSS widget';
static $description = 'Shows a link allowing a user to subscribe to this blog via RSS.';
private static $description = 'Shows a link allowing a user to subscribe to this blog via RSS.';
/**
* Return an absolute URL based on the BlogHolder

View File

@ -1,30 +1,30 @@
<?php
class TagCloudWidget extends Widget {
static $db = array(
private static $db = array(
"Title" => "Varchar",
"Limit" => "Int",
"Sortby" => "Varchar"
);
static $has_one = array();
private static $has_one = array();
static $has_many = array();
private static $has_many = array();
static $many_many = array();
private static $many_many = array();
static $belongs_many_many = array();
private static $belongs_many_many = array();
static $defaults = array(
private static $defaults = array(
"Title" => "Tag Cloud",
"Limit" => "0",
"Sortby" => "alphabet"
);
static $cmsTitle = "Tag Cloud";
static $description = "Shows a tag cloud of tags on your blog.";
private static $cmsTitle = "Tag Cloud";
private static $description = "Shows a tag cloud of tags on your blog.";
static $popularities = array( 'not-popular', 'not-very-popular', 'somewhat-popular', 'popular', 'very-popular', 'ultra-popular' );
private static $popularities = array( 'not-popular', 'not-very-popular', 'somewhat-popular', 'popular', 'very-popular', 'ultra-popular' );
function getCMSFields() {
$fields = parent::getCMSFields();