/**
  * WPML_Taxonomy_Translation constructor.
  *
  * @param string $taxonomy if given renders a specific taxonomy,
  *                         otherwise renders a placeholder
  * @param bool[] $args array with possible indices:
  *                     'taxonomy_selector' => bool .. whether or not to show the taxonomy selector
  * @param WPML_UI_Screen_Options_Factory $screen_options_factory
  */
 public function __construct(&$sitepress, $taxonomy = '', $args = array(), $screen_options_factory = null)
 {
     parent::__construct($sitepress);
     $this->tax_selector = isset($args['taxonomy_selector']) ? $args['taxonomy_selector'] : true;
     $this->taxonomy = $taxonomy ? $taxonomy : false;
     if ($taxonomy) {
         $this->taxonomy_obj = get_taxonomy($taxonomy);
     }
     if ($screen_options_factory) {
         $this->screen_options = $screen_options_factory->create_pagination('taxonomy_translation_per_page', ICL_TM_DOCS_PER_PAGE);
         $this->help_tab = $screen_options_factory->create_help_tab('taxonomy_translation_help_tab', __('Taxonomy Translation', 'sitepress'), '<p>' . __('Descriptive content that will show in My Help Tab-body goes here.') . '</p>');
     }
 }
 /**
  * WPML_Translations_Queue constructor.
  *
  * @param SitePress                      $sitepress
  * @param WPML_UI_Screen_Options_Factory $screen_options_factory
  */
 public function __construct(&$sitepress, $screen_options_factory)
 {
     parent::__construct($sitepress);
     $this->screen_options = $screen_options_factory->create_pagination('tm_translations_queue_per_page', ICL_TM_DOCS_PER_PAGE);
 }