예제 #1
0
 /**
  * Convert dictionary.
  *
  * @param array $params
  */
 public function convert(array $params = [])
 {
     $this->params = array_merge($this->params, $params);
     try {
         $this->init();
         foreach ($this->index as $word => $index) {
             $data = $this->dict->getData($index[0], $index[1]);
             $this->process($word, $data);
         }
         $this->done();
     } catch (\Exception $e) {
         $this->catchException($e);
         throw $e;
     }
 }