Horde_Config::_handleSpecials PHP Метод

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

Returns an associative array containing the possible values of a tag as used inside of enum configurations.
protected _handleSpecials ( DomNode $node ) : array
$node DomNode The DomNode representation of the tag.
Результат array An associative array with the possible values.
    protected function _handleSpecials($node)
    {
        $app = $node->getAttribute('application');
        try {
            if (!in_array($app, $GLOBALS['registry']->listApps())) {
                $app = $GLOBALS['registry']->hasInterface($app);
            }
        } catch (Horde_Exception $e) {
            return array();
        }
        if (!$app) {
            return array();
        }
        try {
            return $GLOBALS['registry']->callAppMethod($app, 'configSpecialValues', array('args' => array($node->getAttribute('name')), 'noperms' => true));
        } catch (Horde_Exception $e) {
            return array();
        }
    }