You are here

private function video_zencoder::settingsArrayToString in Video 6.5

1 call to video_zencoder::settingsArrayToString()
video_zencoder::preset_settings in plugins/video_zencoder/transcoders/video_zencoder.inc

File

plugins/video_zencoder/transcoders/video_zencoder.inc, line 426
Transcoder class file to handle Zencoder settings and conversions.

Class

video_zencoder

Code

private function settingsArrayToString(array $settings, $level = 0) {
  $output = '';
  foreach ($settings as $k => $v) {
    $output .= str_repeat('  ', $level);
    $output .= $k . ':';
    if (is_array($v)) {
      $output .= "\n";
      $output .= $this
        ->settingsArrayToString($v, $level + 1);
    }
    else {
      $output .= ' ' . $v . "\n";
    }
  }
  return $output;
}