method generate documentation in bbn\Api\Cloudmin
Returns a string of PHP code for executing a given command with all its possible parameters pre-populated
function($command)
{
$perlCmd = str_replace('_', '-', $command);
if (isset($this->commands[$perlCmd])) {
$cmd = $this->commands[$perlCmd];
$st = '$vm->' . $command . '([' . PHP_EOL;
foreach ($cmd['args'] as $k => $v) {
$st .= "'$k' => " . ($v['binary'] ? '0' : "''") . PHP_EOL;
}
$st .= ']);';
return $st;
}
return false;
}
Returns a string of PHP code for executing a given command with all its possible parameters pre-populated 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-2024
BBN Solutions