35 DataFactory $data_factory,
50 return $this->options;
58 if (is_null($value)) {
61 if (is_array($value)) {
62 foreach ($value as $v) {
63 if (!array_key_exists($v, $this->options)) {
77 $constraint = $this->refinery->custom()->constraint(
79 return (is_array($value) && count($value) > 0);
91 return function ($id) {
92 $code =
"var checkedBoxes = function() {
94 $('#$id').find('li').each(function() {
95 if ($(this).find('input').prop('checked')) {
96 options.push($(this).find('span').text());
99 return options.join(', ');
101 $('#$id').on('input', function(event) {
102 il.UI.input.onFieldUpdate(event, '$id', checkedBoxes());
104 il.UI.input.onFieldUpdate(event, '$id', checkedBoxes());
115 return $this->complex;
An exception for terminatinating execution or to throw for unit testing.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.