Add native implementation using the libsmbclient-php extensions

This commit is contained in:
Robin Appelman 2014-07-12 17:29:56 +02:00
commit 3c67574fff
6 changed files with 460 additions and 9 deletions

View file

@ -15,17 +15,26 @@ class Server {
/**
* @var string $host
*/
private $host;
protected $host;
/**
* @var string $user
*/
private $user;
protected $user;
/**
* @var string $password
*/
private $password;
protected $password;
/**
* Check if the smblcient php extension is available
*
* @return bool
*/
public static function NativeAvailable() {
return function_exists('smbclient_state_new');
}
/**
* @param string $host