method __construct documentation in bbn\Appui\Project
Construct the class Project
function(bbn\Db $db, string $id = NULL)
{
parent::__construct($db);
$this->options = bbn\Appui\Option::getInstance();
$this->fs = new \bbn\File\System();
if (\bbn\Str::isUid($id)) {
$this->id = $id;
} elseif (\is_string($id)) {
$this->id = $this->options->fromCode($id, 'list', 'project', 'appui');
} elseif (defined('BBN_APP_NAME')) {
$this->id = $this->options->fromCode(BBN_APP_NAME, 'list', 'project', 'appui');
}
if (!empty($this->id)) {
$this->setProjectInfo($this->id);
}
}
Construct the class Project 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-2023
BBN Solutions