Request['id']); $volume = $this->getModule('volume')->getVolumeById($mediaid); if(!is_null($volume)) { $purge = $this->getModule('bconsole')->bconsoleCommand($this->director, array('purge', 'volume="' . $volume->volumename . '"', 'yes')); $this->output = $purge->output; $this->error = (integer)$purge->exitcode; } else { $this->output = VolumeError::MSG_ERROR_VOLUME_DOES_NOT_EXISTS; $this->error = VolumeError::ERROR_VOLUME_DOES_NOT_EXISTS; } } } ?>