本文整理汇总了PHP中Kaltura_Client_Client::setClientTag方法的典型用法代码示例。如果您正苦于以下问题:PHP Kaltura_Client_Client::setClientTag方法的具体用法?PHP Kaltura_Client_Client::setClientTag怎么用?PHP Kaltura_Client_Client::setClientTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Kaltura_Client_Client
的用法示例。
在下文中一共展示了Kaltura_Client_Client::setClientTag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getClient
/**
*
* @return Kaltura_Client_Client
*/
public static function getClient()
{
if (self::$client) {
return self::$client;
}
if (!class_exists('Kaltura_Client_Client')) {
throw new Infra_Exception('Kaltura client not found, maybe it wasn\'t generated', Infra_Exception::ERROR_CODE_MISSING_CLIENT_LIB);
}
$ks = self::getKs();
$config = new Kaltura_Client_Configuration();
$config->serviceUrl = self::getServiceUrl();
$config->curlTimeout = self::getCurlTimeout();
$config->setLogger(new Infra_ClientLoggingProxy());
$settings = Zend_Registry::get('config')->settings;
if (isset($settings->clientConfig)) {
foreach ($settings->clientConfig as $attr => $value) {
$config->{$attr} = $value;
}
}
$front = Zend_Controller_Front::getInstance();
$bootstrap = $front->getParam('bootstrap');
if ($bootstrap) {
$enviroment = $bootstrap->getApplication()->getEnvironment();
if ($enviroment === 'development') {
$config->startZendDebuggerSession = true;
}
}
$client = new Kaltura_Client_Client($config);
$client->setClientTag('Kaltura-' . $settings->applicationName);
$client->setKs($ks);
self::$client = $client;
return $client;
}