public function INIT($value) { if (file_exists(Config::phpweb_version_filename())) { $this->versions = self::generateVersionInfo(Config::phpweb_version_filename()); } else { trigger_error("Can't load the versions file", E_USER_ERROR); } $this->setOutputDir(Config::output_dir() . strtolower($this->getFormatName()) . '/'); if (file_exists($this->getOutputDir())) { if (!is_dir($this->getOutputDir())) { v('Output directory is a file?', E_USER_ERROR); } } else { if (!mkdir($this->getOutputDir())) { v("Can't create output directory", E_USER_ERROR); } } }
public function loadVersionInfo() { if (file_exists(Config::phpweb_version_filename())) { $this->versions = self::generateVersionInfo(Config::phpweb_version_filename()); } else { trigger_error("Can't load the versions file", E_USER_ERROR); } }
public function loadVersionAcronymInfo() { $this->versions = self::generateVersionInfo(Config::phpweb_version_filename()); $this->deprecated = self::generateDeprecatedInfo(Config::phpweb_version_filename()); $this->acronyms = self::generateAcronymInfo(Config::phpweb_acronym_filename()); }