mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8349 from creative-commoners/pulls/4/data-object-d-art
DOCS Updating DataObject config documentation
This commit is contained in:
commit
e4c1ceae59
@ -210,11 +210,14 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
protected $brokenOnWrite = false;
|
protected $brokenOnWrite = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @config
|
* Should dataobjects be validated before they are written?
|
||||||
* @var boolean Should dataobjects be validated before they are written?
|
*
|
||||||
* Caution: Validation can contain safeguards against invalid/malicious data,
|
* Caution: Validation can contain safeguards against invalid/malicious data,
|
||||||
* and check permission levels (e.g. on {@link Group}). Therefore it is recommended
|
* and check permission levels (e.g. on {@link Group}). Therefore it is recommended
|
||||||
* to only disable validation for very specific use cases.
|
* to only disable validation for very specific use cases.
|
||||||
|
*
|
||||||
|
* @config
|
||||||
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
private static $validation_enabled = true;
|
private static $validation_enabled = true;
|
||||||
|
|
||||||
@ -3736,7 +3739,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Inserts standard column-values when a DataObject
|
* Inserts standard column-values when a DataObject
|
||||||
* is instanciated. Does not insert default records {@see $default_records}.
|
* is instantiated. Does not insert default records {@see $default_records}.
|
||||||
* This is a map from fieldname to default value.
|
* This is a map from fieldname to default value.
|
||||||
*
|
*
|
||||||
* - If you would like to change a default value in a sub-class, just specify it.
|
* - If you would like to change a default value in a sub-class, just specify it.
|
||||||
@ -3878,6 +3881,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
* );
|
* );
|
||||||
* </code>
|
* </code>
|
||||||
* @config
|
* @config
|
||||||
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $searchable_fields = null;
|
private static $searchable_fields = null;
|
||||||
|
|
||||||
@ -3885,6 +3889,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
* User defined labels for searchable_fields, used to override
|
* User defined labels for searchable_fields, used to override
|
||||||
* default display in the search form.
|
* default display in the search form.
|
||||||
* @config
|
* @config
|
||||||
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $field_labels = [];
|
private static $field_labels = [];
|
||||||
|
|
||||||
@ -3892,6 +3897,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
* Provides a default list of fields to be used by a 'summary'
|
* Provides a default list of fields to be used by a 'summary'
|
||||||
* view of this object.
|
* view of this object.
|
||||||
* @config
|
* @config
|
||||||
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $summary_fields = [];
|
private static $summary_fields = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user