mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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
@ -18,7 +18,7 @@ class ViewableData extends Object implements IteratorAggregate {
|
||||
* @var int
|
||||
*/
|
||||
protected $iteratorPos;
|
||||
|
||||
|
||||
/**
|
||||
* Total number of items in the iterator.
|
||||
* @var int
|
||||
|
@ -33,14 +33,21 @@ class File extends DataObject {
|
||||
"Owner" => "Member"
|
||||
);
|
||||
|
||||
static $extensions = array(
|
||||
"Hierarchy",
|
||||
);
|
||||
static $has_many = array();
|
||||
|
||||
static $many_many = array();
|
||||
|
||||
static $belongs_many_many = array(
|
||||
"BackLinkTracking" => "SiteTree",
|
||||
);
|
||||
|
||||
static $defaults = array();
|
||||
|
||||
static $extensions = array(
|
||||
"Hierarchy",
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* Cached result of a "SHOW FIELDS" call
|
||||
* in instance_get() for performance reasons.
|
||||
|
@ -27,6 +27,12 @@ class LoginAttempt extends DataObject {
|
||||
'Member' => 'Member', // only linked if the member actually exists
|
||||
);
|
||||
|
||||
static $has_many = array();
|
||||
|
||||
static $many_many = array();
|
||||
|
||||
static $belongs_many_many = array();
|
||||
|
||||
function fieldLabels() {
|
||||
$labels = parent::fieldLabels();
|
||||
$labels['Email'] = _t('LoginAttempt.Email', 'Email Address');
|
||||
|
@ -12,9 +12,15 @@ class MemberPassword extends DataObject {
|
||||
);
|
||||
|
||||
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.
|
||||
* Call MemberPassword::log($this) from within Member whenever the password is changed.
|
||||
|
@ -22,6 +22,11 @@ class Permission extends DataObject {
|
||||
static $defaults = array(
|
||||
"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
|
||||
|
@ -13,7 +13,12 @@ class Widget extends DataObject {
|
||||
static $has_one = array(
|
||||
"Parent" => "WidgetArea",
|
||||
);
|
||||
|
||||
|
||||
static $has_many = array();
|
||||
static $many_many = array();
|
||||
static $belongs_many_many = array();
|
||||
static $defaults = array();
|
||||
|
||||
static $default_sort = "Sort";
|
||||
|
||||
static $title = "Widget Title";
|
||||
|
@ -5,12 +5,19 @@
|
||||
* @subpackage widgets
|
||||
*/
|
||||
class WidgetArea extends DataObject {
|
||||
|
||||
static $db = array();
|
||||
|
||||
static $has_one = array();
|
||||
|
||||
static $has_many = array(
|
||||
"Widgets" => "Widget"
|
||||
);
|
||||
|
||||
static $many_many = array();
|
||||
|
||||
static $belongs_many_many = array();
|
||||
|
||||
function forTemplate() {
|
||||
return $this->renderWith($this->class);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user