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');
114 case 'page':
115 $this->page($options->getArgs()[0], $options->getOpt('dump'));
178 * Check chunk availability for a given page
180 * @param string $page
183 protected function page($page, $dump = false)
187 $pos = array_search(cleanID($page), $pages);
195 $chunks = $storage->getPageChunks($page, $pos * 100);
207 * Split the given page into chunks and print them
209 * @param string $page
213 protected function split($page)
215 $chunks = $this->helper->getEmbeddings()->createPageChunks($page, 0);