apps/encryption/lib/Crypto/EncryptAll.php
/**
	 * iterate over all user and encrypt their files
	 */
iterate over all user and encrypt their files
iterate over all user and encrypt their files
protected function encryptAllUsersFiles() {
		$this->output->writeln("\n");
		$progress = new ProgressBar($this->output);
		$progress->setFormat(" %message% \n [%bar%]");
		$progress->start();
		$numberOfUsers = count($this->userPasswords);
		$userNo = 1;
		if ($this->util->isMasterKeyEnabled()) {
			$this->encryptAllUserFilesWithMasterKey($progress);
		} else {
			foreach ($this->userPasswords as $uid => $password) {
				$userCount = "$uid ($userNo of $numberOfUsers)";
				$this->encryptUsersFiles($uid, $progress, $userCount);
				$userNo++;
			}
		}
		$progress->setMessage("all files encrypted");
		$progress->finish();
	}
protected function encryptAllUsersFiles ( ) { $ this -> output -> writeln ( " \n " ) ; $ progress = new ProgressBar ( $ this -> output ) ; $ progress -> setFormat ( "  %message%  \n  [%bar%] " ) ; $ progress -> start ( ) ; $ numberOfUsers = count ( $ this -> userPasswords ) ; $ userNo = 1 ; if ( $ this -> util -> isMasterKeyEnabled ( ) ) { $ this -> encryptAllUserFilesWithMasterKey ( $ progress ) ; } else { foreach ( $ this -> userPasswords as $ uid => $ password ) { $ userCount = " $ uid  ( $ userNo  of  $ numberOfUsers ) " ; $ this -> encryptUsersFiles ( $ uid , $ progress , $ userCount ) ; $ userNo ++ ; } } $ progress -> setMessage ( " all files encrypted " ) ; $ progress -> finish ( ) ; }
iterate over all user and encrypt their files
iterate over all user and encrypt their files