本文整理汇总了PHP中SitePress::wpdb方法的典型用法代码示例。如果您正苦于以下问题:PHP SitePress::wpdb方法的具体用法?PHP SitePress::wpdb怎么用?PHP SitePress::wpdb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SitePress
的用法示例。
在下文中一共展示了SitePress::wpdb方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param SitePress $sitepress
* @param WPML_Query_Filter $query_filter
*/
public function __construct(&$sitepress, &$query_filter)
{
$wpdb = $sitepress->wpdb();
$post_translation = $sitepress->post_translations();
$term_translation = $sitepress->term_translations();
parent::__construct($sitepress, $wpdb, $post_translation, $term_translation);
$this->query_filter =& $query_filter;
}
示例2: __construct
/**
* @param SitePress $sitepress
* @param WPML_Terms_Translations $term_utils
* @param string $taxonomy
*/
public function __construct(&$sitepress, &$term_utils, $taxonomy)
{
$wpdb = $sitepress->wpdb();
parent::__construct($wpdb, $sitepress);
$this->term_utils = $term_utils;
$this->taxonomy = $taxonomy;
$this->data = $this->set_affected_ids();
$this->prepare_missing_terms_data();
}
示例3: __construct
/**
* WPML_Fix_Type_Assignments constructor.
*
* @param SitePress $sitepress
*/
public function __construct($sitepress)
{
$wpdb = $sitepress->wpdb();
parent::__construct($wpdb, $sitepress);
}
示例4: __construct
/**
* WPML_Taxonomy_Translation_Screen_Data constructor.
*
* @param SitePress $sitepress
* @param string $taxonomy
*/
public function __construct(&$sitepress, $taxonomy)
{
$wpdb = $sitepress->wpdb();
parent::__construct($wpdb, $sitepress);
$this->taxonomy = $taxonomy;
}