public function getE164() { if ($this->config->UserGetResponse17sp4->phoneNumber) { return Numbering::dnE164($this->config->UserGetResponse17sp4->phoneNumber, $this->config->UserGetResponse17sp4->countryCode, $this->config->UserGetResponse17sp4->nationalPrefix); } }
if (!is_array($mecab) || count($mecab) == 0) { return; } $numbers = array(); foreach ($mecab as $item) { if ($item['keyword']) { $numbers[] = $item['keyword']; } } fprintf($this->file, "%s,%d,%d,%s\n", $info['id'], $info['user_id'], $info['reply_to'], implode(",", $numbers)); } public function close() { fclose($this->file); } } $table = KeywordsTable::singleton(); $table->loadTable(ConfPath::keywords()); $loader = new TwitterLog(); $numbering = new Numbering(); $numbering->open(ConfPath::statusList()); foreach (glob(ConfPath::rawStatusList()) as $path) { $loader->open($path); while ($loader->read1Line()) { $info = $loader->getArrayPassedMecab(); $mecab = $table->addKeywordIntoMecabInfo($info['mecab']); $numbering->write1Line($info, $mecab); } $loader->close(); } $numbering->close();