Prado\Web\UI\WebControls\THtmlArea4::parseEditorOptions PHP Метод

parseEditorOptions() защищенный Метод

Parse additional options set in the Options property.
protected parseEditorOptions ( $string ) : array
Результат array additional custom options
    protected function parseEditorOptions($string)
    {
        $options = array();
        $substrings = preg_split('/,\\s*\\n|\\n/', trim($string));
        foreach ($substrings as $bits) {
            $option = explode(":", $bits, 2);
            if (count($option) == 2) {
                $value = trim(trim($option[1]), "'\"");
                if (($s = strtolower($value)) === 'false') {
                    $value = false;
                } elseif ($s === 'true') {
                    $value = true;
                }
                $options[trim($option[0])] = $value;
            }
        }
        return $options;
    }