method __construct documentation in bbn\File\System2
system constructor.
function(string $type = 'local', array $cfg = [])
{
switch ( $type ){
case 'ssh':
if ( $this->_connect_ssh($cfg) ){
$this->mode = 'ssh';
}
break;
case 'ftp':
if ( $this->_connect_ftp($cfg) ){
$this->mode = 'ftp';
}
break;
case 'nextcloud':
if ( $this->_connect_nextcloud($cfg) ){
$this->mode = 'nextcloud';
}
break;
case 'local':
$this->mode = 'local';
$this->current = getcwd();
break;
}
}
system constructor. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions