silverstripe-userforms/code/formfields/UserFormsFieldContainer.php

32 lines
708 B
PHP
Raw Normal View History

<?php
/**
* Represents a field container which can iteratively process nested fields, converting it into a fieldset
*/
2016-07-21 07:53:59 +02:00
interface UserFormsFieldContainer
{
2016-07-21 07:53:59 +02:00
/**
* 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);
2016-07-21 07:53:59 +02:00
/**
* Set the parent
*
* @param UserFormsFieldContainer $parent
* @return $this
*/
public function setParent(UserFormsFieldContainer $parent);
2016-07-21 07:53:59 +02:00
/**
* Get the parent
*
* @return UserFormsFieldContainer
*/
public function getParent();
}