Files
doitinpoland.com/wp-content/plugins/wpml-translation-management/classes/translation-feedback/factories/wpml-tf-xml-rpc-feedback-update-factory.php
2023-09-12 21:41:04 +02:00

23 lines
672 B
PHP

<?php
/**
* Class WPML_TF_XML_RPC_Feedback_Update_Factory
*
* @author OnTheGoSystems
*/
class WPML_TF_XML_RPC_Feedback_Update_Factory {
/** @return WPML_TF_XML_RPC_Feedback_Update */
public function create() {
global $sitepress;
$translation_service = $sitepress->get_setting( 'translation_service' );
$translation_projects = $sitepress->get_setting( 'icl_translation_projects' );
$tp_project = new WPML_TP_Project( $translation_service, $translation_projects );
$feedback_storage = new WPML_TF_Data_Object_Storage( new WPML_TF_Feedback_Post_Convert() );
return new WPML_TF_XML_RPC_Feedback_Update( $feedback_storage, $tp_project );
}
}