示例#1
0
 /**
  * @param string $xmlString
  * @param phpMorphy_UserDict_VisitorInterface $visitor
  * @param phpMorphy_UserDict_EncodingConverter $encodingConverter
  */
 static function loadFromString($xmlString, phpMorphy_UserDict_VisitorInterface $visitor, phpMorphy_UserDict_EncodingConverter $encodingConverter)
 {
     $that = new phpMorphy_UserDict_XmlLoader($visitor, $encodingConverter);
     return $that->load($xmlString, true);
 }
示例#2
0
 /**
  * @param string $xmlFilePath
  */
 function loadFromXml($xmlFilePath)
 {
     phpMorphy_UserDict_XmlLoader::loadFromFile($xmlFilePath, $this, $this->encoding_converter);
 }