You are here

protected function ServletConfig::getParameterBool in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

2 calls to ServletConfig::getParameterBool()
ServletConfig::doKeepUploads in vendor/edsdk/file-uploader-server-php/src/servlet/ServletConfig.php
ServletConfig::isTestAllowed in vendor/edsdk/file-uploader-server-php/src/servlet/ServletConfig.php

File

vendor/edsdk/file-uploader-server-php/src/servlet/ServletConfig.php, line 59

Class

ServletConfig

Namespace

EdSDK\FileUploaderServer\servlet

Code

protected function getParameterBool($name, $defaultValue) {
  $value = $this
    ->getParameter($name, $defaultValue, false);
  if (is_bool($value) !== false) {
    return $value;
  }
  else {
    error_log("Incorrect '" . $name . "' parameter boolean value");
    return $defaultValue;
  }
}