本文整理汇总了PHP中KalturaClient::setConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP KalturaClient::setConfig方法的具体用法?PHP KalturaClient::setConfig怎么用?PHP KalturaClient::setConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KalturaClient
的用法示例。
在下文中一共展示了KalturaClient::setConfig方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unimpersonate
protected function unimpersonate()
{
$clientConfig = $this->client->getConfig();
$clientConfig->partnerId = $this->batchPartnerId;
$this->client->setConfig($clientConfig);
}
示例2: KalturaConfiguration
$storage_base_dir = $argv[8];
$delivery_url = $argv[9];
$username = $argv[10];
$passwd = $argv[11];
$storage_type = $argv[12];
$config = new KalturaConfiguration($partner_id);
$config->serviceUrl = $service_url;
$client = new KalturaClient($config);
$user_id = null;
$expiry = null;
$privileges = null;
$type = KalturaSessionType::ADMIN;
$ks = $client->user->login(-2, $minus2_mail, $minus2_passwd, $expiry, $privileges);
$client->setKs($ks);
$config->partnerId = $partner_id;
$client->setConfig($config);
if ($storage_type == S3) {
$storageProfile = new KalturaAmazonS3StorageProfile();
$storageProfile->filesPermissionInS3 = KalturaAmazonS3StorageProfileFilesPermissionLevel::ACL_PUBLIC_READ;
} else {
$storageProfile = new KalturaStorageProfile();
}
$storageProfile->name = $storage_display_name;
$storageProfile->systemName = $storage_display_name;
$storageProfile->desciption = $storage_display_name . ' - auto generated by ' . __FILE__ . "\n";
$storageProfile->pathManagerClass = 'kPathManager';
$storageProfile->status = KalturaStorageProfileStatus::AUTOMATIC;
$storageProfile->protocol = $protocols[$protocol];
$storageProfile->storageUrl = $storage_url;
$storageProfile->storageBaseDir = $storage_base_dir;
$storageProfile->storageUsername = $username;
示例3: impersonate
public function impersonate($partnerId)
{
$config = $this->kalturaClient->getConfig();
$config->partnerId = $partnerId;
$this->kalturaClient->setConfig($config);
}
示例4: unimpersonate
public function unimpersonate()
{
$this->kClientConfig->partnerId = $this->taskConfig->getPartnerId();
$this->kClient->setConfig($this->kClientConfig);
}