silverstripe-framework/Security/PermissionCheckboxSetField_Readonly.php
Damian Mooyman 8dd644d25d
API Namespace all classes
Namespace all templates
Move difflib and BBCodeParser2 to thirdparty
Remove deprecated API marked for removal in 4.0
2016-09-08 10:23:17 +12:00

21 lines
404 B
PHP

<?php
namespace SilverStripe\Security;
use SilverStripe\ORM\DataObjectInterface;
/**
* Readonly version of a {@link PermissionCheckboxSetField} -
* uses the same structure, but has all checkboxes disabled.
*/
class PermissionCheckboxSetField_Readonly extends PermissionCheckboxSetField
{
protected $readonly = true;
public function saveInto(DataObjectInterface $record)
{
return false;
}
}