mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-05-28 04:35:53 -04:00
17 lines
313 B
PHP
17 lines
313 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Icinga\Module\Director\Web\Form\Element;
|
||
|
|
|
||
|
|
use Zend_Form_Element_Text as ZfText;
|
||
|
|
|
||
|
|
class Text extends ZfText
|
||
|
|
{
|
||
|
|
public function setValue($value)
|
||
|
|
{
|
||
|
|
if (\is_array($value)) {
|
||
|
|
$value = \json_encode($value);
|
||
|
|
}
|
||
|
|
return parent::setValue((string) $value);
|
||
|
|
}
|
||
|
|
}
|