Ejemplo n.º 1
0
 /**
  * Performs xliff export.
  */
 private function do_xliff_export()
 {
     foreach (Wpml2mlp_Helper::get_all_posts() as $current_post) {
         $this->set_xliff_item($current_post->ID, $current_post, $this->language_holder);
     }
     $data = $this->language_holder->get_all_items();
     if (is_array($data) && count($data) > 0) {
         $this->xliff_creator->contentForExport = $data;
         $this->xliff_creator->do_xliff_export();
     }
 }
Ejemplo n.º 2
0
 /**
  * Runs import of wmpl to the mlp and creates new sites in multisite environment if doesn't exists.
  */
 private function do_wpml2mlp()
 {
     self::check_sites();
     self::create_categories();
     self::create_posts(Wpml2mlp_Helper::get_all_posts());
 }