コード例 #1
0
ファイル: local.php プロジェクト: AdamWill/apps
 public function __construct()
 {
     parent::__construct();
     // get the path to the executable
     $avPath = \OCP\Config::getAppValue('files_antivirus', 'av_path', '/usr/bin/clamscan');
     // check that the executable is available
     if (!file_exists($avPath)) {
         throw new \RuntimeException('The antivirus executable could not be found at ' . $avPath);
     }
     $this->avPath = $avPath;
 }
コード例 #2
0
ファイル: external.php プロジェクト: WYSAC/oregon-owncloud
 public function __construct($useSocket)
 {
     parent::__construct($useSocket);
     $this->useSocket = $useSocket;
 }