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:
Will Rossiter 2009-01-20 03:48:02 +00:00 committed by Sam Minnee
parent fd482d66a4
commit 64e61cc250
7 changed files with 42 additions and 6 deletions

View File

@ -18,7 +18,7 @@ class ViewableData extends Object implements IteratorAggregate {
* @var int
*/
protected $iteratorPos;
/**
* Total number of items in the iterator.
* @var int

View File

@ -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.

View File

@ -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');

View File

@ -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.

View File

@ -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

View File

@ -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";

View File

@ -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);
}