Prado\Web\UI\ActiveControls\TBaseActiveCallbackControl::getDefaultClientSideOptions PHP Метод

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

Returns an array of default callback client-side options. The default options are obtained from the client-side options of a TCallbackOptions control with ID specified by {@link setCallbackOptions CallbackOptions}.
protected getDefaultClientSideOptions ( ) : array
Результат array list of default callback client-side options.
    protected function getDefaultClientSideOptions()
    {
        if (($id = $this->getCallbackOptions()) !== '') {
            if (($pos = strrpos($id, '.')) !== false) {
                $control = $this->getControl()->getSubProperty(substr($id, 0, $pos));
                $newid = substr($id, $pos + 1);
                if ($control !== null) {
                    $control = $control->{$newid};
                }
            } else {
                // TCheckBoxList overrides findControl() with a fake implementation
                // but accepts a second parameter to use the standard one
                $control = $this->getControl()->findControl($id, true);
            }
            if ($control instanceof TCallbackOptions) {
                return $control->getClientSide()->getOptions()->toArray();
            } else {
                throw new TConfigurationException('callback_invalid_callback_options', $this->getControl()->getID(), $id);
            }
        }
        return array();
    }