Comments: on this page. Click to read or post your own.
Implements interfaces:
A single database record & abstract class for the data-access-model.
Object-level access control by Permission. Permission codes are arbitrary strings which can be selected on a group-by-group basis.
Object-level access control by Group membership:
Located in /sapphire/core/model/DataObject.php (line 56)
Object | --ViewableData | --DataObject
| Class | Description |
|---|---|
| File | This class handles the representation of a File within Sapphire Note: The files are stored in the "/assets/" directory, but sapphire looks at the db object to gather information about a file such as URL |
| SQLQueryTest_DO | A single database record & abstract class for the data-access-model. |
| CsvBulkLoaderTest_Team | A single database record & abstract class for the data-access-model. |
| CsvBulkLoaderTest_Player | A single database record & abstract class for the data-access-model. |
| CsvBulkLoaderTest_PlayerContract | A single database record & abstract class for the data-access-model. |
| DataObjectDecoratorTest_Member | A single database record & abstract class for the data-access-model. |
| DataObjectDecoratorTest_RelatedObject | A single database record & abstract class for the data-access-model. |
| DataObjectTest_Team | A single database record & abstract class for the data-access-model. |
| DataObjectTest_FunnyFieldNames | A single database record & abstract class for the data-access-model. |
| DataObjectTest_ValidatedObject | A single database record & abstract class for the data-access-model. |
| FormTest_Player | A single database record & abstract class for the data-access-model. |
| FormTest_Team | A single database record & abstract class for the data-access-model. |
| CheckboxSetFieldTest_Article | A single database record & abstract class for the data-access-model. |
| CheckboxSetFieldTest_Tag | A single database record & abstract class for the data-access-model. |
| FormScaffolderTest_Article | A single database record & abstract class for the data-access-model. |
| FormScaffolderTest_Tag | A single database record & abstract class for the data-access-model. |
| TableListFieldTest_Obj | A single database record & abstract class for the data-access-model. |
| TableListFieldTest_CsvExport | A single database record & abstract class for the data-access-model. |
| RestfulServerTest_Comment | Everybody can view comments, logged in members in the "users" group can create comments, but only "editors" can edit or delete them. |
| RestfulServerTest_SecretThing | A single database record & abstract class for the data-access-model. |
| RestfulServerTest_Page | A single database record & abstract class for the data-access-model. |
| RestfulServerTest_Author | A single database record & abstract class for the data-access-model. |
| RestfulServerTest_AuthorRating | A single database record & abstract class for the data-access-model. |
| SoapModelAccessTest_Comment | Everybody can view comments, logged in members in the "users" group can create comments, but only "editors" can edit or delete them. |
| SoapModelAccessTest_Page | A single database record & abstract class for the data-access-model. |
| SearchContextTest_Person | A single database record & abstract class for the data-access-model. |
| SearchContextTest_Book | A single database record & abstract class for the data-access-model. |
| SearchContextTest_Company | A single database record & abstract class for the data-access-model. |
| SearchContextTest_Project | A single database record & abstract class for the data-access-model. |
| SearchContextTest_Deadline | A single database record & abstract class for the data-access-model. |
| SearchContextTest_Action | A single database record & abstract class for the data-access-model. |
| SearchContextTest_AllFilterTypes | A single database record & abstract class for the data-access-model. |
| Permission | Represents a permission assigned to a group. |
| LoginAttempt | Record all login attempts through the LoginForm object. |
| Member | The member class which represents the users of the system |
| Group | A security group. |
| MemberPassword | Keep track of users' previous passwords, so that we can check that new passwords aren't changed back to old ones. |
| SiteTree | Basic data-object representing all pages within the site tree. |
| QueuedEmail | Stores a queued email to be sent at the given time |
| Email_BounceRecord | Database record for recording a bounced email |
| Email_BlackList | This class is responsible for ensuring that members who are on it receive NO email communication at all. any correspondance is caught before the email is sent. |
| Widget | Base class for widgets. |
| WidgetArea | Represents a set of widgets shown on a page. |
| PageComment | A single database record & abstract class for the data-access-model. |
| NewsletterType | A single database record & abstract class for the data-access-model. |
| Newsletter | A single database record & abstract class for the data-access-model. |
| Newsletter_Recipient | A single database record & abstract class for the data-access-model. |
| ProductVariation | A single database record & abstract class for the data-access-model. |
| Order | The order class is a databound object for handling Orders within SilverStripe. |
| OrderStatusLog | Class which implement a log object to keep a history of the status changes of an order. |
| OrderAttribute | OrderAttribute is an attribute which makes up an Order. |
| Payment | Payment class. |
A cache used by getClassAncestry()
Allow API access to this object?
The inverse side of a many-many relationship.
This is a map from component name to data type.
A cache used by get_one.
Use a casting object for a field. This is a map from field name to class name of the casting object.
Database field definitions.
This is a map from field names to field type. The field type should be a class that extends .
Inserts standard column-values when a DataObject is instanciated. Does not insert default records {@see $default_records}.
This is a map from classname to default value.
Multidimensional array which inserts default data into the database on a db/build-call as long as the database-table is empty. Please use this only for simple constructs, not for SiteTree-Objects etc. which need special behaviour such as publishing and ParentNodes.
Example: array( array('Title' => "DefaultPage1", 'PageTitle' => 'page1'), array('Title' => "DefaultPage2") ).
The default sort expression. This will be inserted in the ORDER BY clause of a SQL query if no other sort expression is provided.
User defined labels for searchable_fields, used to override default display in the search form.
one-to-many relationship definitions.
This is a map from component name to data type.
Caution: Because this doesn't define any data structure itself, you should specify a $has_one relationship on the other end of the relationship. Also, if the $has_one relationship on the other end has multiple definitions of this class (e.g. two different relationships to the Member object), then you need to write a custom accessor (e.g. overload the function from the key of this array), because sapphire won't know which to access.
one-to-one relationship definitions.
This is a map from component name to data type.
If a field is in this array, then create a database index on that field. This is a map from fieldname to index type.
many-many relationship definitions.
This is a map from component name to data type.
Extra fields to include on the connecting many-many table.
This is a map from field name to field type.
Human-readable pluaral name
Default list of fields that can be scaffolded by the ModelAdmin search interface.
Overriding the default filter, with a custom defined filter:
Overriding the default form fields, with a custom defined field. The 'filter' parameter will be generated from DBField::$default_search_filter_class. The 'title' parameter will be generated from DataObject->fieldLabels().
Overriding the default form field, filter and title:
Human-readable singular name.
Provides a default list of fields to be used by a 'summary' view of this object.
Used by onBeforeDelete() to ensure child classes call parent::onBeforeDelete()
Used by onBeforeWrite() to ensure child classes call parent::onBeforeWrite()
An array indexed by fieldname, true if the field has been changed.
A cache used by component getting classes
The one-to-one, one-to-many and many-to-one components indexed by component name.
True if this DataObject has been destroyed.
The database record (in the same format as $record), before any changes.
Data stored in this objects database record. An array indexed by fieldname.
Inherited from ViewableData
ViewableData::$castingHelperPair_cache
ViewableData::$customisedObj
ViewableData::$failover
ViewableData::$iteratorPos
ViewableData::$iteratorTotalItems
ViewableData::$namedAs
ViewableData::$parent
ViewableData::$_natural_cache
ViewableData::$_object_cache
ViewableData::$_xml_cache
Inherited from Object
Object::$builtInMethods
Object::$class
Object::$classConstructed
Object::$extensions
Object::$extension_instances
Object::$extraMethods
Object::$extraStatics
Object::$statics
Object::$static_cached
Retrieve the current context object.
Delete the record with the given ID.
Temporarily disable subclass access in data object qeur
Return all objects matching the filter sub-classes are automatically selected and included
Return the given element, searching by ID
Return the SiteTree object with the given URL segment.
Return the first item matching the given query.
All calls to get_one() are cached.
Sets a 'context object' that can be used to provide hints about how to process a particular get / get_one request.
In particular, DataObjectDecorators can use this to amend queries more effectively. Care must be taken to unset the context object after you're done with it, otherwise you will have a stale context, which could cause horrible bugs.
Construct a new DataObject.