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);
    }
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);
    }
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 ) ; }
Get the library adapter to use for confirmation.

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

@return Libraries\Library|null
Get the library adapter to use for confirmation .