本文整理汇总了PHP中Index::requireIndexing方法的典型用法代码示例。如果您正苦于以下问题:PHP Index::requireIndexing方法的具体用法?PHP Index::requireIndexing怎么用?PHP Index::requireIndexing使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Index
的用法示例。
在下文中一共展示了Index::requireIndexing方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
public function run()
{
$reader = new Reader();
$render = new Render();
if (Index::requireIndexing()) {
$format = $render->attach(new Index());
$reader->open(Config::xml_file());
$render->execute($reader);
$render->detach($format);
}
$render->attach($this->format);
$reader->open(Config::xml_file());
$render->execute($reader);
}
示例2: Reader_Partial
$reader = new Reader_Partial();
} else {
v("Running full build", VERBOSE_RENDER_STYLE);
$reader = new Reader();
}
return $reader;
}
$render = new Render();
$reader = make_reader();
// Set reader LIBXML options
$readerOpts = 0;
if (Config::process_xincludes()) {
$readerOpts |= LIBXML_XINCLUDE;
}
// Indexing
if (Index::requireIndexing()) {
v("Indexing...", VERBOSE_INDEXING);
// Create indexer
$format = $render->attach(new Index());
$reader->open(Config::xml_file(), NULL, $readerOpts);
$render->execute($reader);
$render->detach($format);
v("Indexing done", VERBOSE_INDEXING);
} else {
v("Skipping indexing", VERBOSE_INDEXING);
}
foreach ((array) Config::package() as $package) {
$factory = Format_Factory::createFactory($package);
// Default to all output formats specified by the package
if (count(Config::output_format()) == 0) {
Config::set_output_format((array) $factory->getOutputFormats());