You are here

public function ServletConfig::getRelocateFromHosts in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

Overrides IConfig::getRelocateFromHosts

File

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

Class

ServletConfig

Namespace

EdSDK\FileUploaderServer\servlet

Code

public function getRelocateFromHosts() {
  $hostsStr = $this
    ->getParameterStr("relocateFromHosts", "");
  $hostsFound = explode(",", $hostsStr);
  $hosts = [];
  for ($i = count($hostsFound) - 1; $i >= 0; $i--) {
    $host = strtolower(trim($hostsFound[$i]));
    if (strlen($host) > 0) {
      $hosts[] = $host;
    }
  }
  return $hosts;
}