Exemplo n.º 1
0
 function __construct(phpMorphy_Dict_Source_SourceInterface $source)
 {
     $this->helper = phpMorphy_Dict_GramTab_ConstStorage_Factory::create($source->getLanguage());
     foreach ($source->getAncodes() as $ancode) {
         $this->ancodes[] = $this->createAncode($ancode);
     }
 }
Exemplo n.º 2
0
 private function writeOptions(XMLWriter $writer, phpMorphy_Dict_Source_SourceInterface $source)
 {
     $this->log(__METHOD__);
     $writer->startElement('options');
     $writer->startElement('locale');
     $writer->writeAttribute('name', $source->getLanguage());
     $writer->endElement();
     $writer->endElement();
 }
Exemplo n.º 3
0
 /**
  * @return Iterator over objects of phpMorphy_Dict_Lemma
  */
 public function getLemmas()
 {
     $result = $this->object->getLemmas();
     return $result === $this->object ? $this : $result;
 }