Exemplo n.º 1
0
 private function writeOptions(XMLWriter $writer, phpMorphy_Dict_Source_Interface $source)
 {
     $this->log(__METHOD__);
     $writer->startElement('options');
     $this->writeDummy($writer);
     $writer->startElement('locale');
     $writer->writeAttribute('name', $source->getLanguage());
     $writer->endElement();
     $writer->endElement();
 }
Exemplo n.º 2
0
Arquivo: sql.php Projeto: Sywooch/dump
 protected function createNewDict(phpMorphy_Dict_Source_Interface $source)
 {
     $r = $this->engine->execInsert('dicts', array('name' => $this->trim($source->getName(), 64), 'desc' => $this->trim($source->getDescription(), 255), 'locale' => $this->trim($source->getLanguage(), 64)));
     $result = $this->engine->getLastInsertId('dicts');
     return $result;
 }
Exemplo n.º 3
0
 function __construct(phpMorphy_Dict_Source_Interface $source)
 {
     $this->helper = phpMorphy_GramTab_Const_Factory::create($source->getLanguage());
     foreach ($source->getAncodes() as $ancode) {
         $this->ancodes[] = $this->createAncode($ancode);
     }
 }