mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9544 from jakxnz/pulls/4.6/dataextension-doc-blocks
This commit is contained in:
commit
9eadef19d3
@ -16,6 +16,9 @@ use Exception;
|
|||||||
abstract class DataExtension extends Extension
|
abstract class DataExtension extends Extension
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated 4.7.0 No longer used by internal code
|
||||||
|
*/
|
||||||
public static function unload_extra_statics($class, $extension)
|
public static function unload_extra_statics($class, $extension)
|
||||||
{
|
{
|
||||||
throw new Exception('unload_extra_statics gone');
|
throw new Exception('unload_extra_statics gone');
|
||||||
@ -60,42 +63,116 @@ abstract class DataExtension extends Extension
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extend the owner's onBeforeWrite() logic
|
||||||
|
*
|
||||||
|
* See {@link DataObject::onBeforeWrite()} for context.
|
||||||
|
*/
|
||||||
public function onBeforeWrite()
|
public function onBeforeWrite()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extend the owner's onAfterWrite() logic
|
||||||
|
*
|
||||||
|
* See {@link DataObject::onAfterWrite()} for context.
|
||||||
|
*/
|
||||||
public function onAfterWrite()
|
public function onAfterWrite()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extend the owner's onBeforeDelete() logic
|
||||||
|
*
|
||||||
|
* See {@link DataObject::onBeforeDelete()} for context.
|
||||||
|
*/
|
||||||
public function onBeforeDelete()
|
public function onBeforeDelete()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extend the owner's onAfterDelete() logic
|
||||||
|
*
|
||||||
|
* See {@link DataObject::onAfterDelete()} for context.
|
||||||
|
*/
|
||||||
public function onAfterDelete()
|
public function onAfterDelete()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extend the owner's requireDefaultRecords() logic
|
||||||
|
*
|
||||||
|
* See {@link DataObject::requireDefaultRecords()} for context.
|
||||||
|
*/
|
||||||
public function requireDefaultRecords()
|
public function requireDefaultRecords()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extend the owner's populateDefaults() logic
|
||||||
|
*
|
||||||
|
* See {@link DataObject::populateDefaults()} for context.
|
||||||
|
*/
|
||||||
public function populateDefaults()
|
public function populateDefaults()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Influence the owner's can() permission check value to be disallowed (false),
|
||||||
|
* allowed (true) if no other processed results are to disallow, or open (null) to not
|
||||||
|
* affect the outcome.
|
||||||
|
*
|
||||||
|
* See {@link DataObject::can()} and {@link DataObject::extendedCan()} for context.
|
||||||
|
*
|
||||||
|
* @param Member $member
|
||||||
|
* @param array $context
|
||||||
|
* @return bool|null
|
||||||
|
*/
|
||||||
public function can($member)
|
public function can($member)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Influence the owner's canEdit() permission check value to be disallowed (false),
|
||||||
|
* allowed (true) if no other processed results are to disallow, or open (null) to not
|
||||||
|
* affect the outcome.
|
||||||
|
*
|
||||||
|
* See {@link DataObject::canEdit()} and {@link DataObject::extendedCan()} for context.
|
||||||
|
*
|
||||||
|
* @param Member $member
|
||||||
|
* @param array $context
|
||||||
|
* @return bool|null
|
||||||
|
*/
|
||||||
public function canEdit($member)
|
public function canEdit($member)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Influence the owner's canDelete() permission check value to be disallowed (false),
|
||||||
|
* allowed (true) if no other processed results are to disallow, or open (null) to not
|
||||||
|
* affect the outcome.
|
||||||
|
*
|
||||||
|
* See {@link DataObject::canDelete()} and {@link DataObject::extendedCan()} for context.
|
||||||
|
*
|
||||||
|
* @param Member $member
|
||||||
|
* @param array $context
|
||||||
|
* @return bool|null
|
||||||
|
*/
|
||||||
public function canDelete($member)
|
public function canDelete($member)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Influence the owner's canCreate() permission check value to be disallowed (false),
|
||||||
|
* allowed (true) if no other processed results are to disallow, or open (null) to not
|
||||||
|
* affect the outcome.
|
||||||
|
*
|
||||||
|
* See {@link DataObject::canCreate()} and {@link DataObject::extendedCan()} for context.
|
||||||
|
*
|
||||||
|
* @param Member $member
|
||||||
|
* @param array $context
|
||||||
|
* @return bool|null
|
||||||
|
*/
|
||||||
public function canCreate($member)
|
public function canCreate($member)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user