本文整理匯總了PHP中requestUtils::getRemoteUserAgent方法的典型用法代碼示例。如果您正苦於以下問題:PHP requestUtils::getRemoteUserAgent方法的具體用法?PHP requestUtils::getRemoteUserAgent怎麽用?PHP requestUtils::getRemoteUserAgent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類requestUtils
的用法示例。
在下文中一共展示了requestUtils::getRemoteUserAgent方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: save
public function save(PropelPDO $con = null)
{
if (!kAuditTrailManager::traceEnabled($this->getPartnerId(), $this)) {
KalturaLog::debug("No audit created object type [{$this->object_type}] action [{$this->action}]");
return 0;
}
if (is_null($this->getKuserId())) {
$this->setPuserId(kCurrentContext::$uid);
}
if (is_null($this->getClientTag())) {
$this->setClientTag(kCurrentContext::$client_lang);
}
$this->setRequestId($this->getUniqueRequestId());
$this->setMasterPartnerId(kCurrentContext::$master_partner_id);
$this->setKs(kCurrentContext::$ks);
$this->setIpAddress(kCurrentContext::$user_ip);
$this->setServerName(kCurrentContext::$host);
$this->setEntryPoint(kCurrentContext::getEntryPoint());
$this->setUserAgent(requestUtils::getRemoteUserAgent());
return parent::save($con);
}
示例2: save
public function save(PropelPDO $con = null)
{
if (!kAuditTrailManager::traceEnabled($this->getPartnerId(), $this)) {
return 0;
}
if (is_null($this->getKuserId())) {
$this->setPuserId(kCurrentContext::$uid);
if (kCurrentContext::$uid == '') {
$this->setPuserId(kCurrentContext::$ks_uid);
}
}
if (is_null($this->getClientTag())) {
$this->setClientTag(kCurrentContext::$client_lang);
}
$this->setRequestId(new UniqueId());
$this->setMasterPartnerId(kCurrentContext::$master_partner_id);
$this->setKs(kCurrentContext::$ks);
$this->setIpAddress(kCurrentContext::$user_ip);
$this->setServerName(kCurrentContext::$host);
$this->setEntryPoint(kCurrentContext::getEntryPoint());
$this->setUserAgent(requestUtils::getRemoteUserAgent());
return parent::save($con);
}