本文整理汇总了PHP中ICanLocalizeQuery::get_current_session方法的典型用法代码示例。如果您正苦于以下问题:PHP ICanLocalizeQuery::get_current_session方法的具体用法?PHP ICanLocalizeQuery::get_current_session怎么用?PHP ICanLocalizeQuery::get_current_session使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICanLocalizeQuery
的用法示例。
在下文中一共展示了ICanLocalizeQuery::get_current_session方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
}
}
$target = ICL_API_ENDPOINT . '/websites/' . $this->settings['site_id'] . '/website_translation_offers/' . $lang_pair_id . '?accesskey=' . $this->settings['access_key'] . '&compact=1';
}
$support_mode = isset($_GET['support']) ? $_GET['support'] : '';
/*
if ($support_mode == '1') {
$iclq = new ICanLocalizeQuery($this->settings['support_site_id'], $this->settings['support_access_key']);
} else {
$iclq = new ICanLocalizeQuery($this->settings['site_id'], $this->settings['access_key']);
}
$session_id = $iclq->get_current_session(true, $support_mode == '1');
*/
if (isset($this->settings['site_id']) && isset($this->settings['access_key'])) {
$iclq = new ICanLocalizeQuery($this->settings['site_id'], $this->settings['access_key']);
$session_id = $iclq->get_current_session(true, $support_mode == '1');
} else {
$session_id = '';
}
$admin_lang = $this->get_admin_language();
if (isset($_GET['code'])) {
$add = '&code=' . urlencode($_GET['code']);
} else {
$add = '';
}
if (strpos($target, '?') === false) {
$target .= '?';
} else {
$target .= '&';
}
$target .= "session=" . $session_id . "&lc=" . $admin_lang . $add;