method setProject documentation in bbn\Appui\Ide

function(string $project) { $project_name = false; //case project is uid if (Str::isUid($project) && !empty($rep = $this->options->option($project))) { $this->projects = new \bbn\Appui\Project($this->db, $project); $project_name = $rep['name']; } //case project is name elseif ((strlen($project) > 0) && !empty($opt = $this->options->fromCode($project, 'list', self::IDE_PROJECTS, self::BBN_APPUI))) { $this->projects = new \bbn\Appui\Project($this->db, $opt); $project_name = $project; } // case project is not defined get default elseif (defined('BBN_APP_NAME') && !empty($opt = $this->options->fromCode(constant('BBN_APP_NAME'), 'list', self::IDE_PROJECTS, self::BBN_APPUI))) { $this->projects = new \bbn\Appui\Project($this->db, $opt); $project_name = constant('BBN_APP_NAME'); } $this->project = $project_name; if ($project_name && !empty($this->projects)) { $this->init(); $this->_ide_path(); } return $project_name; }

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.