lib/private/Encryption/DecryptAll.php
/**
	 * prepare encryption modules to perform the decrypt all function
	 *
	 * @param $user
	 * @return bool
	 */
prepare encryption modules to perform the decrypt all function
@param $user
@return bool
prepare encryption modules to perform the decrypt all function @param $user @return bool
protected function prepareEncryptionModules($user) {
		$encryptionModules = $this->encryptionManager->getEncryptionModules();
		foreach ($encryptionModules as $moduleDesc) {
			$module = call_user_func($moduleDesc['callback']);
			$this->output->writeln('');
			$this->output->writeln('Prepare "' . $module->getDisplayName() . '"');
			$this->output->writeln('');
			if ($module->prepareDecryptAll($this->input, $this->output, $user) === false) {
				$this->output->writeln('Module "' . $moduleDesc['displayName'] . '" does not support the functionality to decrypt all files again or the initialization of the module failed!');
				return false;
			}
		}
		return true;
	}
protected function prepareEncryptionModules ( $ user ) { $ encryptionModules = $ this -> encryptionManager -> getEncryptionModules ( ) ; foreach ( $ encryptionModules as $ moduleDesc ) { $ module = call_user_func ( $ moduleDesc [ 'callback' ] ) ; $ this -> output -> writeln ( '' ) ; $ this -> output -> writeln ( 'Prepare "' . $ module -> getDisplayName ( ) . '"' ) ; $ this -> output -> writeln ( '' ) ; if ( $ module -> prepareDecryptAll ( $ this -> input , $ this -> output , $ user ) === false ) { $ this -> output -> writeln ( 'Module "' . $ moduleDesc [ 'displayName' ] . '" does not support the functionality to decrypt all files again or the initialization of the module failed!' ) ; return false ; } } return true ; }
prepare encryption modules to perform the decrypt all function
 @param $user
 @return bool
prepare encryption modules to perform the decrypt all function @param $user @return bool
// prepare all encryption modules for decrypt all /** @var IEncryptionModule $module */