/** * fill some properties from informations stored into the project.xml or jelix-app.json file. * @return string the application name */ function loadFromProject() { $infos = new \Jelix\Core\Infos\AppInfos(\Jelix\Core\App::appPath()); if (!$infos->exists()) { throw new Exception("cannot load jelix-app.json or project.xml"); } $this->infoLicence = $infos->license; $this->infoLicenceUrl = $infos->licenseURL; $this->infoCopyright = $infos->copyright; $this->infoWebsite = $infos->homepageURL; return $infos->name; }