mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: added empty statics to allow decoration
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70409 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fd482d66a4
commit
64e61cc250
@ -33,14 +33,21 @@ class File extends DataObject {
|
|||||||
"Owner" => "Member"
|
"Owner" => "Member"
|
||||||
);
|
);
|
||||||
|
|
||||||
static $extensions = array(
|
static $has_many = array();
|
||||||
"Hierarchy",
|
|
||||||
);
|
static $many_many = array();
|
||||||
|
|
||||||
static $belongs_many_many = array(
|
static $belongs_many_many = array(
|
||||||
"BackLinkTracking" => "SiteTree",
|
"BackLinkTracking" => "SiteTree",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static $defaults = array();
|
||||||
|
|
||||||
|
static $extensions = array(
|
||||||
|
"Hierarchy",
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cached result of a "SHOW FIELDS" call
|
* Cached result of a "SHOW FIELDS" call
|
||||||
* in instance_get() for performance reasons.
|
* in instance_get() for performance reasons.
|
||||||
|
@ -27,6 +27,12 @@ class LoginAttempt extends DataObject {
|
|||||||
'Member' => 'Member', // only linked if the member actually exists
|
'Member' => 'Member', // only linked if the member actually exists
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static $has_many = array();
|
||||||
|
|
||||||
|
static $many_many = array();
|
||||||
|
|
||||||
|
static $belongs_many_many = array();
|
||||||
|
|
||||||
function fieldLabels() {
|
function fieldLabels() {
|
||||||
$labels = parent::fieldLabels();
|
$labels = parent::fieldLabels();
|
||||||
$labels['Email'] = _t('LoginAttempt.Email', 'Email Address');
|
$labels['Email'] = _t('LoginAttempt.Email', 'Email Address');
|
||||||
|
@ -12,9 +12,15 @@ class MemberPassword extends DataObject {
|
|||||||
);
|
);
|
||||||
|
|
||||||
static $has_one = array(
|
static $has_one = array(
|
||||||
'Member' => 'Member',
|
'Member' => 'Member'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static $has_many = array();
|
||||||
|
|
||||||
|
static $many_many = array();
|
||||||
|
|
||||||
|
static $belongs_many_many = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a password change from the given member.
|
* Log a password change from the given member.
|
||||||
* Call MemberPassword::log($this) from within Member whenever the password is changed.
|
* Call MemberPassword::log($this) from within Member whenever the password is changed.
|
||||||
|
@ -22,6 +22,11 @@ class Permission extends DataObject {
|
|||||||
static $defaults = array(
|
static $defaults = array(
|
||||||
"Type" => 1
|
"Type" => 1
|
||||||
);
|
);
|
||||||
|
static $has_many = array();
|
||||||
|
|
||||||
|
static $many_many = array();
|
||||||
|
|
||||||
|
static $belongs_many_many = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the value to use for the "Type" field if a permission should be
|
* This is the value to use for the "Type" field if a permission should be
|
||||||
|
@ -14,6 +14,11 @@ class Widget extends DataObject {
|
|||||||
"Parent" => "WidgetArea",
|
"Parent" => "WidgetArea",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static $has_many = array();
|
||||||
|
static $many_many = array();
|
||||||
|
static $belongs_many_many = array();
|
||||||
|
static $defaults = array();
|
||||||
|
|
||||||
static $default_sort = "Sort";
|
static $default_sort = "Sort";
|
||||||
|
|
||||||
static $title = "Widget Title";
|
static $title = "Widget Title";
|
||||||
|
@ -5,12 +5,19 @@
|
|||||||
* @subpackage widgets
|
* @subpackage widgets
|
||||||
*/
|
*/
|
||||||
class WidgetArea extends DataObject {
|
class WidgetArea extends DataObject {
|
||||||
|
|
||||||
static $db = array();
|
static $db = array();
|
||||||
|
|
||||||
|
static $has_one = array();
|
||||||
|
|
||||||
static $has_many = array(
|
static $has_many = array(
|
||||||
"Widgets" => "Widget"
|
"Widgets" => "Widget"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static $many_many = array();
|
||||||
|
|
||||||
|
static $belongs_many_many = array();
|
||||||
|
|
||||||
function forTemplate() {
|
function forTemplate() {
|
||||||
return $this->renderWith($this->class);
|
return $this->renderWith($this->class);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user