protected function PHPVideoToolkit::_raiseError in Video 7
Same name and namespace in other branches
- 7.2 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::_raiseError()
* Raises an error * * @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
22 calls to PHPVideoToolkit::_raiseError()
- PHPVideoToolkit::addGDWatermark in libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php - * Adds a watermark to the outputted image files using the PHP GD module. * This effects only image output. * * @access public *
- PHPVideoToolkit::addVideo in libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php - * This process will combine the original input video with the video specified by this function. * This function accepts more than one video as arguments. They will be added in order of the arguments. * ie. input_video -> video1 -> video2…
- PHPVideoToolkit::addWatermark in libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php - * Adds a watermark to the outputted files. This effects both video and image output. * * @access public *
- 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::extractAudio in libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php - * This is an alias for setFormat, but restricts it to audio only formats. * * @access public *
File
- libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php, line 3809
Class
Code
protected function _raiseError($message, $replacements = false) {
$msg = 'PHPVideoToolkit Error: ' . $this
->_getMessage($message, $replacements);
// check what the error is supposed to do
if ($this->on_error_die === true) {
die($msg);
//<- exits
}
// add the error message to the collection
array_unshift($this->_errors, $msg);
return false;
}