You are here

public function PHPVideoToolkit::moveLog in Video 7

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

* Moves the current log file to another file. * * @access public *

Parameters

$destination string The absolute path of the new filename for the log.: * @return boolean Returns the result of the log file rename.

File

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

Class

PHPVideoToolkit

Code

public function moveLog($destination) {
  $result = false;
  if ($this->_log_file !== null && is_file($this->_log_file)) {
    if (is_file($destination)) {
      unlink($destination);
    }
    $result = rename($this->_log_file, $destination);
    $this->_log_file = $destination;
  }
  return $result;
}