예제 #1
0
switch ($argv[1]) {
    case 'all':
        $postProcess->processAll($nntp);
        break;
    case 'allinf':
        $i = 1;
        while ($i = 1) {
            $postProcess->processAll($nntp);
            sleep(15);
        }
        break;
    case 'additional':
        $postProcess->processAdditional($nntp, '', isset($argv[3]) && in_array($argv[3], $charArray) ? $argv[3] : '');
        break;
    case 'amazon':
        $postProcess->processBooks();
        $postProcess->processConsoles();
        $postProcess->processGames();
        $postProcess->processMusic();
        $postProcess->processXXX();
        break;
    case 'anime':
        $postProcess->processAnime();
        break;
    case 'book':
        $postProcess->processBooks();
        break;
    case 'console':
        $postProcess->processConsoles();
        break;
    case 'games':
예제 #2
0
 /**
  * Process all that require a single thread.
  */
 private function processSingle()
 {
     $postProcess = new PProcess(['Settings' => $this->pdo, 'ColorCLI' => $this->_colorCLI]);
     $pp = new \PostProcess(true);
     //$postProcess->processAnime();
     $postProcess->processBooks();
     $pp->processBooks();
     $postProcess->processConsoles();
     $postProcess->processGames();
     $postProcess->processMusic();
     $pp->processMusic();
     $postProcess->processXXX();
 }