/**
  * @param string                $post_type
  * @param SitePress             $sitepress
  * @param WPML_Post_Translation $post_translations
  * @param wpdb                  $wpdb
  */
 public function __construct($post_type, &$sitepress, &$post_translations, &$wpdb)
 {
     parent::__construct($wpdb, $sitepress);
     $this->post_type = $post_type;
     $this->indexes[] = $post_type;
     $this->is_translated = $this->sitepress->is_translated_post_type($post_type);
     $this->post_translation =& $post_translations;
 }
Exemplo n.º 2
0
 /**
  * @param wpdb              $wpdb
  * @param SitePress         $sitepress
  * @param WPML_Query_Filter $query_filter
  */
 public function __construct(&$wpdb, &$sitepress, &$query_filter)
 {
     parent::__construct($wpdb, $sitepress);
     $this->query_filter =& $query_filter;
 }