mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fixing static definitions to private for 3.1 compatibility
This commit is contained in:
parent
9bbf420e0d
commit
95c8a8490c
@ -5,38 +5,39 @@
|
||||
* @package blog
|
||||
*/
|
||||
class BlogEntry extends Page {
|
||||
static $db = array(
|
||||
|
||||
private static $db = array(
|
||||
"Date" => "SS_Datetime",
|
||||
"Author" => "Text",
|
||||
"Tags" => "Text"
|
||||
);
|
||||
|
||||
static $default_parent = 'BlogHolder';
|
||||
private static $default_parent = 'BlogHolder';
|
||||
|
||||
static $can_be_root = false;
|
||||
private static $can_be_root = false;
|
||||
|
||||
static $icon = "blog/images/blogpage-file.png";
|
||||
private static $icon = "blog/images/blogpage-file.png";
|
||||
|
||||
static $description = "An individual blog entry";
|
||||
private static $description = "An individual blog entry";
|
||||
|
||||
static $singular_name = 'Blog Entry Page';
|
||||
private static $singular_name = 'Blog Entry Page';
|
||||
|
||||
static $plural_name = 'Blog Entry Pages';
|
||||
private static $plural_name = 'Blog Entry Pages';
|
||||
|
||||
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(
|
||||
"ProvideComments" => true,
|
||||
'ShowInMenus' => false
|
||||
);
|
||||
|
||||
static $extensions = array(
|
||||
private static $extensions = array(
|
||||
'TrackBackDecorator'
|
||||
);
|
||||
|
||||
|
@ -12,25 +12,26 @@
|
||||
* BlogHolders have a form on them for easy posting, and an owner that can post to them, BlogTrees don't
|
||||
*/
|
||||
class BlogHolder extends BlogTree implements PermissionProvider {
|
||||
static $icon = "blog/images/blogholder-file.png";
|
||||
|
||||
static $description = "Displays listings of blog entries";
|
||||
private static $icon = "blog/images/blogholder-file.png";
|
||||
|
||||
static $singular_name = 'Blog Holder Page';
|
||||
private static $description = "Displays listings of blog entries";
|
||||
|
||||
static $plural_name = 'Blog Holder Pages';
|
||||
private static $singular_name = 'Blog Holder Page';
|
||||
|
||||
static $db = array(
|
||||
private static $plural_name = 'Blog Holder Pages';
|
||||
|
||||
private static $db = array(
|
||||
'TrackBacksEnabled' => 'Boolean',
|
||||
'AllowCustomAuthors' => 'Boolean',
|
||||
'ShowFullEntry' => 'Boolean',
|
||||
);
|
||||
|
||||
static $has_one = array(
|
||||
private static $has_one = array(
|
||||
'Owner' => 'Member',
|
||||
);
|
||||
|
||||
static $allowed_children = array(
|
||||
private static $allowed_children = array(
|
||||
'BlogEntry'
|
||||
);
|
||||
|
||||
|
@ -11,32 +11,32 @@
|
||||
|
||||
class BlogTree extends Page {
|
||||
|
||||
static $icon = "blog/images/blogtree-file.png";
|
||||
private static $icon = "blog/images/blogtree-file.png";
|
||||
|
||||
static $description = "A grouping of blogs";
|
||||
private static $description = "A grouping of blogs";
|
||||
|
||||
static $singular_name = 'Blog Tree Page';
|
||||
private static $singular_name = 'Blog Tree Page';
|
||||
|
||||
static $plural_name = 'Blog Tree Pages';
|
||||
private static $plural_name = 'Blog Tree Pages';
|
||||
|
||||
// Default number of blog entries to show
|
||||
static $default_entries_limit = 10;
|
||||
|
||||
static $db = array(
|
||||
private static $db = array(
|
||||
'Name' => 'Varchar(255)',
|
||||
'InheritSideBar' => 'Boolean',
|
||||
'LandingPageFreshness' => 'Varchar',
|
||||
);
|
||||
|
||||
static $defaults = array(
|
||||
private static $defaults = array(
|
||||
'InheritSideBar' => True
|
||||
);
|
||||
|
||||
static $has_one = array();
|
||||
private static $has_one = array();
|
||||
|
||||
static $has_many = array();
|
||||
private static $has_many = array();
|
||||
|
||||
static $allowed_children = array(
|
||||
private static $allowed_children = array(
|
||||
'BlogTree', 'BlogHolder'
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user