You are here

protected function PHPVideoToolkit::_getMessage in Video 7.2

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

Gets a message.

@access protected

Parameters

string $message:

array $replacements a list of replacements in search=>replacement format:

Return value

boolean Only returns FALSE if $toolkit->on_error_die is set to FALSE

3 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.
PHPVideoToolkit::_logResult in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Adds lines to the current log file.
PHPVideoToolkit::_raiseError in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Raises an error

File

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

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