mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
36 lines
824 B
PHP
36 lines
824 B
PHP
<?php
|
|
|
|
namespace SilverStripe\UserForms\FormField;
|
|
|
|
use SilverStripe\UserForms\Model\EditableFormField\EditableFormField;
|
|
|
|
/**
|
|
* Represents a field container which can iteratively process nested fields, converting it into a fieldset
|
|
*/
|
|
interface UserFormsFieldContainer
|
|
{
|
|
|
|
/**
|
|
* Process the next field in the list, returning the container to add the next field to.
|
|
*
|
|
* @param EditableFormField $field
|
|
* @return EditableContainerField
|
|
*/
|
|
public function processNext(EditableFormField $field);
|
|
|
|
/**
|
|
* Set the parent
|
|
*
|
|
* @param UserFormsFieldContainer $parent
|
|
* @return $this
|
|
*/
|
|
public function setParent(UserFormsFieldContainer $parent);
|
|
|
|
/**
|
|
* Get the parent
|
|
*
|
|
* @return UserFormsFieldContainer
|
|
*/
|
|
public function getParent();
|
|
}
|