當前位置: 首頁>>代碼示例>>PHP>>正文


PHP KalturaClient::setConfig方法代碼示例

本文整理匯總了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);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:6,代碼來源:KCopyingEngine.php

示例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;
開發者ID:carise,項目名稱:platform-install-packages,代碼行數:31,代碼來源:kaltura-remote-storage-config.php

示例3: impersonate

 public function impersonate($partnerId)
 {
     $config = $this->kalturaClient->getConfig();
     $config->partnerId = $partnerId;
     $this->kalturaClient->setConfig($config);
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:6,代碼來源:DistributionEngine.php

示例4: unimpersonate

 public function unimpersonate()
 {
     $this->kClientConfig->partnerId = $this->taskConfig->getPartnerId();
     $this->kClient->setConfig($this->kClientConfig);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:5,代碼來源:KBulkUploadEngine.php


注:本文中的KalturaClient::setConfig方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。