Lines Matching defs:page
66 $options->registerCommand('split', 'Split a page into chunks (for debugging)');
67 $options->registerArgument('page', 'The page to split', true, 'split');
69 $options->registerCommand('page', 'Check if chunks for a given page are available (for debugging)');
70 $options->registerArgument('page', 'The page to check', true, 'page');
71 $options->registerOption('dump', 'Dump the chunks', 'd', false, 'page');
113 case 'page':
114 $this->page($options->getArgs()[0], $options->getOpt('dump'));
177 * Check chunk availability for a given page
179 * @param string $page
182 protected function page($page, $dump = false)
186 $pos = array_search(cleanID($page), $pages);
194 $chunks = $storage->getPageChunks($page, $pos * 100);
206 * Split the given page into chunks and print them
208 * @param string $page
212 protected function split($page)
214 $chunks = $this->helper->getEmbeddings()->createPageChunks($page, 0);