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); } }
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(); }
/** * @return Iterator over objects of phpMorphy_Dict_Lemma */ public function getLemmas() { $result = $this->object->getLemmas(); return $result === $this->object ? $this : $result; }