Prado\Web\UI\JuiControls\TJuiControlOptions::toArray PHP Метод

toArray() публичный Метод

public toArray ( ) : Array
Результат Array of active control options
    public function toArray()
    {
        $ret = $this->_options === null ? array() : $this->_options;
        foreach ($this->_control->getValidEvents() as $event) {
            if ($this->_control->hasEventHandler('on' . $event)) {
                $ret[$event] = new TJavaScriptLiteral("function( event, ui ) { Prado.JuiCallback(" . TJavaScript::encode($this->_control->getUniqueID()) . ", " . TJavaScript::encode($event) . ", event, ui, this); }");
            }
        }
        return $ret;
    }