mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fixing further statics for 3.1 compatibility
This commit is contained in:
parent
95c8a8490c
commit
3c286381ec
@ -16,7 +16,7 @@ class TrackBackDecorator extends DataExtension {
|
||||
// );
|
||||
// }
|
||||
|
||||
static $has_many = array(
|
||||
private static $has_many = array(
|
||||
'TrackBackURLs' => 'TrackBackURL',
|
||||
'TrackBacks' => 'TrackBackPing'
|
||||
);
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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() {
|
||||
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
class BlogTreeExtension extends DataExtension {
|
||||
|
||||
static $has_one = array("SideBar" => "WidgetArea");
|
||||
private static $has_one = array("SideBar" => "WidgetArea");
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user