You are here

protected function PHPVideoToolkit::_addToLog in Video 7

Same name and namespace in other branches
  1. 7.2 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.:

3 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. * * @access public *
PHPVideoToolkit::_joinInput in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* This is a protected function that joins multiple input sources into one source before * the final processing takes place. All videos are temporarily converted into mpg for * joining. * * PLEASE NOTE. This process is experimental an…
PHPVideoToolkit::_logResult in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* Adds lines to the current log file. * * @access protected *

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 3658

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);
}