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',
|
'TrackBackURLs' => 'TrackBackURL',
|
||||||
'TrackBacks' => 'TrackBackPing'
|
'TrackBacks' => 'TrackBackPing'
|
||||||
);
|
);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class TrackBackPing extends DataObject {
|
class TrackBackPing extends DataObject {
|
||||||
static $db = array(
|
private static $db = array(
|
||||||
'Title' => 'Varchar',
|
'Title' => 'Varchar',
|
||||||
'Excerpt' => 'Text',
|
'Excerpt' => 'Text',
|
||||||
// 2083 is URL-length limit for IE, AFAIK.
|
// 2083 is URL-length limit for IE, AFAIK.
|
||||||
@ -10,15 +10,15 @@ class TrackBackPing extends DataObject {
|
|||||||
'BlogName' => 'Varchar'
|
'BlogName' => 'Varchar'
|
||||||
);
|
);
|
||||||
|
|
||||||
static $has_one = array(
|
private static $has_one = array(
|
||||||
'Page' => 'Page'
|
'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
|
<?php
|
||||||
class TrackBackURL extends DataObject {
|
class TrackBackURL extends DataObject {
|
||||||
|
|
||||||
static $db = array(
|
private static $db = array(
|
||||||
'URL' => 'Varchar(2048)',
|
'URL' => 'Varchar(2048)',
|
||||||
'Pung' => 'Boolean(0)'
|
'Pung' => 'Boolean(0)'
|
||||||
);
|
);
|
||||||
|
|
||||||
static $has_one = array(
|
private static $has_one = array(
|
||||||
'BlogEntry' => 'BlogEntry'
|
'BlogEntry' => 'BlogEntry'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -6,27 +6,27 @@
|
|||||||
* @package blog
|
* @package blog
|
||||||
*/
|
*/
|
||||||
class ArchiveWidget extends Widget {
|
class ArchiveWidget extends Widget {
|
||||||
static $db = array(
|
private static $db = array(
|
||||||
'DisplayMode' => 'Varchar'
|
'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'
|
'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() {
|
function getCMSFields() {
|
||||||
$fields = parent::getCMSFields();
|
$fields = parent::getCMSFields();
|
||||||
|
@ -4,21 +4,21 @@
|
|||||||
* @package blog
|
* @package blog
|
||||||
*/
|
*/
|
||||||
class BlogManagementWidget extends Widget implements PermissionProvider {
|
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";
|
private static $title = "Blog Management";
|
||||||
static $cmsTitle = "Blog Management";
|
private 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 $description = "Provide a number of links useful for administering a blog. Only shown if the user is an admin.";
|
||||||
|
|
||||||
function CommentText() {
|
function CommentText() {
|
||||||
|
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
class BlogTreeExtension extends DataExtension {
|
class BlogTreeExtension extends DataExtension {
|
||||||
|
|
||||||
static $has_one = array("SideBar" => "WidgetArea");
|
private static $has_one = array("SideBar" => "WidgetArea");
|
||||||
|
|
||||||
}
|
}
|
@ -1,26 +1,26 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class RSSWidget extends Widget {
|
class RSSWidget extends Widget {
|
||||||
static $db = array(
|
private static $db = array(
|
||||||
"RSSTitle" => "Text",
|
"RSSTitle" => "Text",
|
||||||
"RssUrl" => "Text",
|
"RssUrl" => "Text",
|
||||||
"NumberToShow" => "Int"
|
"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,
|
"NumberToShow" => 10,
|
||||||
"RSSTitle" => 'RSS Feed'
|
"RSSTitle" => 'RSS Feed'
|
||||||
);
|
);
|
||||||
static $cmsTitle = "RSS Feed";
|
private static $cmsTitle = "RSS Feed";
|
||||||
static $description = "Downloads another page's RSS feed and displays items in a list.";
|
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
|
* If the RssUrl is relative, convert it to absolute with the
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
*/
|
*/
|
||||||
class SubscribeRSSWidget extends Widget {
|
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
|
* Return an absolute URL based on the BlogHolder
|
||||||
|
@ -1,30 +1,30 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class TagCloudWidget extends Widget {
|
class TagCloudWidget extends Widget {
|
||||||
static $db = array(
|
private static $db = array(
|
||||||
"Title" => "Varchar",
|
"Title" => "Varchar",
|
||||||
"Limit" => "Int",
|
"Limit" => "Int",
|
||||||
"Sortby" => "Varchar"
|
"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",
|
"Title" => "Tag Cloud",
|
||||||
"Limit" => "0",
|
"Limit" => "0",
|
||||||
"Sortby" => "alphabet"
|
"Sortby" => "alphabet"
|
||||||
);
|
);
|
||||||
|
|
||||||
static $cmsTitle = "Tag Cloud";
|
private static $cmsTitle = "Tag Cloud";
|
||||||
static $description = "Shows a tag cloud of tags on your blog.";
|
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() {
|
function getCMSFields() {
|
||||||
$fields = parent::getCMSFields();
|
$fields = parent::getCMSFields();
|
||||||
|
Loading…
Reference in New Issue
Block a user