VERBOSE_ALL^(VERBOSE_PARTIAL_CHILD_READING|VERBOSE_CHUNK_WRITING), "lang_dir" => $ROOT . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "langs" . DIRECTORY_SEPARATOR, "phpweb_version_filename" => PhDConfig::xml_root() . DIRECTORY_SEPARATOR . 'version.xml', "phpweb_acronym_filename" => PhDConfig::xml_root() . DIRECTORY_SEPARATOR . 'entities' . DIRECTORY_SEPARATOR . 'acronyms.xml', )); $render = new PhDRender(); $reader = new PhDReader(); $factory = PhDFormatFactory::createFactory(); // Indexing & registering formats foreach(range(0, 0) as $i) { if (PhDIndex::requireIndexing()) { v("Indexing...", VERBOSE_INDEXING); // Create indexer $format = new PhDIndex(); $render->attach($format); $reader->open(PhDConfig::xml_file()); $render->render($reader); $format->commit(); $render->detach($format); v("Indexing done", VERBOSE_INDEXING); } else { v("Skipping indexing", VERBOSE_INDEXING); } foreach (PhDConfig::output_format() as $format) { switch($format) { case "xhtml": // Standalone Chunked xHTML Format $render->attach($factory->createXhtmlFormat()); break; case "php": // Standalone phpweb Format $render->attach($factory->createPHPFormat()); break; case "bigxhtml": // Standalone Big xHTML Format $render->attach($factory->createBigXhtmlFormat()); break; } } /* // Standalone phpweb Format //$xhtml = new PhDPHPFormat(); //$render->attach($xhtml); // Standalone Chunked xHTML Format $xhtml = new PhDXHTMLFormat(); $render->attach($xhtml); // Use the markup from the Chunked xHTML Format to produce Big xHTML $bightml = new PhDBigXHTMLFormat(); $xhtml->attach($bightml); // Standalone Big xHTML Format $bightml = new PhDBigXHTMLFormat(); $render->attach($bightml); */ } // Rendering formats foreach(range(0, 0) as $i) { $reader->open(PhDConfig::xml_file()); foreach($render as $format) { $format->notify(PhDRender::VERBOSE, true); } $render->render($reader); } v("Finished rendering", VERBOSE_FORMAT_RENDERING);