35 parent::__construct(
$url);
36 $this->components = $this->
toArray($content);
37 $types = array( Component::class );
49 $clone->components = $this->
toArray($content);
50 $types = array( Component::class );
95 if (count($array) === 0) {
96 throw new \LogicException(
"At least one component from the UI framework is required, otherwise 97 the wrapper dropzone is not visible.");
trait ComponentHelper
Provides common functionality for component implementations.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
checkArgListElements($which, array &$values, &$classes)
Check every element of the list if it is an instance of one of the given classes. ...
checkEmptyArray(array $array)
Checks if the passed array contains at least one element, throws a LogicException otherwise...
withContent($content)
Get a wrapper dropzone like this, wrapping around the given component(s).$content$this ...
__construct($url, $content)
toArray($value)
Wrap the given value in an array if it is no array.
withTitle($title)
Get a wrapper dropzone like this, but showing a custom title in the appearing modal.$content$this
getTitle()
Get the custom title if set.Component[]