method add documentation in bbn\Ide\Directories
function($data)
{
SELECT MAX(position) AS pos
FROM bbn_ide_directories') + 1;
if ( $this->db->insert('bbn_ide_directories', [
'name' => $data['name'],
'path' => bbn\Str::parsePath($data['path']),
'fcolor' => $data['fcolor'],
'bcolor' => $data['bcolor'],
'outputs' => \strlen($data['outputs']) ? $data['outputs'] : NULL,
'files' => $data['files'],
'position' => $data['position']
]) ){
$data['id'] = $this->db->lastId();
return $data;
}
return $this->error('Error: Add.');
}
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