mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
6b25237ec6
This enhancement adds the ability to add documents to a document set based on a list of filters added from DMSDocument. Fixes #96
25 lines
473 B
PHP
25 lines
473 B
PHP
<?php
|
|
|
|
/**
|
|
* Class StubDocumentSetMockExtension
|
|
*
|
|
* @package dms
|
|
*/
|
|
class StubDocumentSetMockExtension extends DataExtension implements TestOnly
|
|
{
|
|
/**
|
|
*
|
|
* For method {@link DMSDocumentSet::addQueryFields}
|
|
*
|
|
* @param FieldList $fields
|
|
*
|
|
* @return FieldList
|
|
*/
|
|
public function updateQueryFields($fields)
|
|
{
|
|
$fields->addFieldToTab('Root.QueryBuilder', new TextField('ExtendedField'));
|
|
|
|
return $fields;
|
|
}
|
|
}
|