Get the library adapter to use for confirmation.

@param bool              $bReturnDefault             Return the default confirm if none is configured

@return Libraries\Library|null
966384
protected function getConfirmLibrary($bReturnDefault = false)
    {
        // Get the current confirm library
        if(($this->sConfirmLibrary) &&
            ($library = $this->getLibrary($this->sConfirmLibrary)) && ($library instanceof Confirm))
        {
            return $library;
        }
        // Get the configured confirm library
        if(($sName = $this->getOption('dialogs.default.confirm', '')) &&
            ($library = $this->getLibrary($sName)) && ($library instanceof Confirm))
        {
            return $library;
        }
        // Get the default confirm library
        return ($bReturnDefault ? $this->getPluginManager()->getDefaultConfirm() : null);
    }
242806
public function getAdapterClass($name = null)
    {
        if (null === $name) {
            $name = $this->getDefaultDatasource();
        }

        return $this->adapterClasses[$name];
    }
1279078
public function getDefaultProvider()
    {
        if (isset($this->defaultProvider)) {
            return $this->getProvider($this->defaultProvider);
        }

        $providerLabels = array_keys($this->providers);

        return $this->providers[$providerLabels[0]];
    }
1007094
public static function getDefault()
    {
        if (static::$_default != null) {
            return static::$_default;
        }

        // check if running into laravel context
        if (Context::checkLaravel()) {
            static::$_default = new self(['socket' => 'Laravel']);

            return static::$_default;
        }

        // check if registered container
        if (Context::checkContainer()) {
            return Context::getContainerDatabase();
        }
    }
1325358
public static function getDefault()
    {
        $fields = self::getDbConnection()->fetchAssoc( "SELECT * FROM dir_data where hidden<>1 and is_server<>0 and type&".Server::DEFAULT_SERVER."=1" );
        if ($fields) {
            return self::fetch($fields);
        } else {
            return false;
        }     
    }
803446
public function getDefault()
    {
        $category = $this->getCategory();

        $categoryConfig = $this->getCategoryConfig($category);

        if (!isset($categoryConfig[ModelInterface::DEFAULT_CONTEXT])) {
            throw new DefaultMissingException(
                'ConfigModel requires default to be set'
            );
        }

        return $categoryConfig[ModelInterface::DEFAULT_CONTEXT];
    }
192205
public function getAdapter()
    {
        if (null === $this->adapter) {
            $this->setAdapter($this->config['adapter']);
        }

        return $this->adapter;
    }
837548
public function getSearchSpellcheckingSearchUsingSpellCheckerSuggestion($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.search.spellchecking.searchUsingSpellCheckerSuggestion', $defaultIfEmpty);
        return $this->getBool($result);
    }
401971
public function getDefaultResultServer()
    {
        $ext = common_ext_ExtensionsManager::singleton()->getExtensionById('taoResultServer');
        if ($ext->hasConfig(self::DEFAULT_RESULTSERVER_KEY)) {
            $uri = $ext->getConfig(self::DEFAULT_RESULTSERVER_KEY);
        } else {
            $uri = ResultServerService::INSTANCE_VOID_RESULT_SERVER;
        }
        
        return new core_kernel_classes_Resource($uri);
    }
755333
public function getESAdaptor()
    {
        if (empty($this->adaptor)) {

            $this->assertion->isInstanceOf(
                $this->decorator,
                '\Liip\Registry\Adaptor\Decorator\DecoratorInterface',
                'Mandatory decorator object is not defined.'
            );

            $this->adaptor = new ElasticaAdaptor($this->decorator);
        }

        return $this->adaptor;
    }
348558
public function getDefault($name)
    {
        return isset($this->defaults[$name]) ? $this->defaults[$name] : null;
    }
264596
public static function getAdapter(string $adapter = null): AbstractCacheAdapter
    {
        $key = $adapter ?? static::getConfig()->getFirstKey();

        if (isset(static::$adapters[$key])) {
            return static::$adapters[$key];
        }

        $config = static::getConfig();
        $configArray = $config->get($key, []);

        if (($configArray['enabled'] ?? false) === false) {
            static::$adapters[$key] = new Cache\Adapter\DevNull([]);
        } else {

            if (isset($configArray['module'])) {
                Application::registerModule($configArray['module']);
            }

            $className = $configArray['adapter_class'] ?? null;

            if ($className === null) {
                throw new ConfigException("Cache config under key={$key} doesn\'t have defined 'adapter_class'; please set the 'adapter_class' with the name of class that extends \\Koldy\\Cache\\Adapter\\AbstractCacheAdapter");
            }

            if (!class_exists($className, true)) {
                throw new ConfigException("Class={$className} defined in cache config under key={$adapter} wasn't found; check the name and namespace of class and if class can be loaded");
            }

            static::$adapters[$key] = new $className($configArray['options'] ?? []);
        }

        return static::$adapters[$key];
    }
533724
private function getAdapter(TableInterface $table, $format)
    {
        $adapters = $table->getConfig()->getExportAdapters();

        foreach ($adapters as $adapter) {
            if ($adapter->supports($format)) {
                return $adapter;
            }
        }

        return null;
    }
774101
public function getSearchVariants($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.search.variants', $defaultIfEmpty);
        return $this->getBool($result);
    }
877864
public static function getDefault()
    {
        if ((self::$compatibilityMode === true) or (func_num_args() > 0)) {
            if (!self::$_breakChain) {
                self::$_breakChain = true;
                trigger_error('You are running Zend_Locale in compatibility mode... please migrate your scripts', E_USER_NOTICE);
                $params = func_get_args();
                $param = null;
                if (isset($params[0])) {
                    $param = $params[0];
                }
                return self::getOrder($param);
            }

            self::$_breakChain = false;
        }

        return self::$_default;
    }
231185
public function getDefault($load = false)
    {
        $store_id = $this->config->get('store', 1);

        if ($load) {
            return $this->get($store_id);
        }

        return (int) $store_id;
    }
762120
public function GetIcon($bReturnDefaultImageIfNoneSet = false)
    {
        $oIcon = $this->GetFromInternalCache('oIcon');
        if (is_null($oIcon)) {
            $oIcon = $this->GetImage(0, 'cms_media_id', $bReturnDefaultImageIfNoneSet);
            if (is_null($oIcon)) {
                $oIcon = false;
            }
            $this->SetInternalCache('oIcon', $oIcon);
        }

        return $oIcon;
    }