You are here

protected function PHPVideoToolkit::_addToLog in Video 7.2

Same name and namespace in other branches
  1. 7 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::_addToLog()

Adds lines to the current log file.

@access protected

Parameters

$lines array An array of lines to add to the log file.:

2 calls to PHPVideoToolkit::_addToLog()
PHPVideoToolkit::execute in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Commits all the commands and executes the ffmpeg procedure. This will also attempt to validate any outputted files in order to provide some level of stop and check system.
PHPVideoToolkit::_logResult in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Adds lines to the current log file.

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 3332
Libary to access FFmpeg

Class

PHPVideoToolkit

Code

protected function _addToLog($lines, $where = 'a') {
  $handle = fopen($this->_log_file, $where);
  if (is_array($lines)) {
    $data = implode("\n", $lines) . "\n";
  }
  else {
    $data = $lines . "\n";
  }
  fwrite($handle, $data);
  fclose($handle);
}