method __construct documentation in bbn\Api\Cloudmin

Virtualmin constructor.

function(array $cfg) { if (isset($cfg['user'], $cfg['pass'])) { $this->cacheInit(); $this->user = $cfg['user']; $this->pass = $cfg['pass']; $this->hostname = isset($cfg['host']) ? $cfg['host'] : 'localhost'; $this->checked = true; if (class_exists('\\bbn\\Cache')) { if (!$this->cacheHas('list_commands')) { $this->fetchCommands(); } $this->commands = $this->cacheGet('list_commands'); } else { $this->commands = $this->fetchCommands(); } } }

Virtualmin 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.