You are here

protected function PHPVideoToolkit::_getMessage in Video 7

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

* Gets a message. * * @access protected *

Parameters

string $message: * @param array $replacements a list of replacements in search=>replacement format * @return boolean Only returns false if $toolkit->on_error_die is set to false

4 calls to PHPVideoToolkit::_getMessage()
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 *
PHPVideoToolkit::_raiseError in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* Raises an error * * @access protected *

File

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

Class

PHPVideoToolkit

Code

protected function _getMessage($message, $replacements = false) {
  $message = isset($this->_messages[$message]) === true ? $this->_messages[$message] : 'Unknown!!!';
  if ($replacements) {
    $searches = $replaces = array();
    foreach ($replacements as $search => $replace) {
      array_push($searches, '#' . $search);
      array_push($replaces, $replace);
    }
    $message = str_replace($searches, $replaces, $message);
  }
  return $message;
}