本文整理汇总了PHP中KalturaObject类的典型用法代码示例。如果您正苦于以下问题:PHP KalturaObject类的具体用法?PHP KalturaObject怎么用?PHP KalturaObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KalturaObject类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: doFromObject
public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
{
parent::doFromObject($source_object, $responseProfile);
/* @var $source_object kBulkUploadFilterJobData */
$this->filter = null;
switch (get_class($source_object->getFilter())) {
case 'categoryEntryFilter':
$this->filter = new KalturaCategoryEntryFilter();
break;
case 'entryFilter':
$this->filter = new KalturaBaseEntryFilter();
break;
default:
break;
}
if ($this->filter) {
$this->filter->fromObject($source_object->getFilter());
}
$this->templateObject = null;
switch (get_class($source_object->getTemplateObject())) {
case 'categoryEntry':
$this->templateObject = new KalturaCategoryEntry();
break;
default:
break;
}
if ($this->templateObject) {
$this->templateObject->fromObject($source_object->getTemplateObject());
}
}
开发者ID:DBezemer,项目名称:server,代码行数:30,代码来源:KalturaBulkUploadFilterJobData.php
示例2: fromObject
public function fromObject($dbData)
{
/* @var $dbData kCopyJobData */
$filter = $dbData->getFilter();
$filterType = get_class($filter);
switch ($filterType) {
case 'entryFilter':
$this->filter = new KalturaBaseEntryFilter();
$this->templateObject = new KalturaBaseEntry();
break;
case 'categoryFilter':
$this->filter = new KalturaCategoryFilter();
$this->templateObject = new KalturaCategory();
break;
case 'categoryEntryFilter':
$this->filter = new KalturaCategoryEntryFilter();
$this->templateObject = new KalturaCategoryEntry();
break;
case 'categoryKuserFilter':
$this->filter = new KalturaCategoryUserFilter();
$this->templateObject = new KalturaCategoryUser();
break;
default:
$this->filter = KalturaPluginManager::loadObject('KalturaFilter', $filterType);
}
if ($this->filter) {
$this->filter->fromObject($filter);
}
if ($this->templateObject) {
$this->templateObject->fromObject($dbData->getTemplateObject());
}
return parent::fromObject($dbData);
}
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:33,代码来源:KalturaCopyJobData.php
示例3: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
$dbObject = new kObjectTask();
}
return parent::toObject($dbObject, $skip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaObjectTask.php
示例4: toObject
public function toObject($object = null, $skipProperties = array())
{
if (!$object) {
$object = new kFilterPager();
}
return parent::toObject($object, $skipProperties);
}
开发者ID:AdiTal,项目名称:server,代码行数:7,代码来源:KalturaFilterPager.php
示例5: fromObject
public function fromObject($sourceObject)
{
if (!$sourceObject) {
return;
}
parent::fromObject($sourceObject);
}
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:7,代码来源:KalturaUserLoginData.php
示例6: toObject
public function toObject($dbObject = null, $skip = array())
{
if (!$dbObject) {
$dbObject = new kFileSyncDescriptor();
}
return parent::toObject($dbObject, $skip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaFileSyncDescriptor.php
示例7: doFromObject
public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
{
parent::doFromObject($source_object, $responseProfile);
if ($this->shouldGet('updateParams', $responseProfile)) {
$this->updateParams = KalturaStringArray::fromStringArray($source_object->getUpdateParams());
}
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaDistributionFieldConfig.php
示例8: toObject
public function toObject($dbObject = null, $propsToSkip = array())
{
if (!$dbObject) {
$dbObject = new kLiveStreamPushPublishConfiguration();
}
return parent::toObject($dbObject, $propsToSkip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaLiveStreamPushPublishConfiguration.php
示例9: getArrayType
/**
* When reflecting an array, returns the type of the array as string
*
* @return string
*/
public function getArrayType()
{
if ($this->isArray()) {
return $this->_instance->getType();
}
return null;
}
开发者ID:richhl,项目名称:kalturaCE,代码行数:12,代码来源:KalturaTypeReflector.php
示例10: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
$dbObject = new UserLoginData();
}
return parent::toObject($dbObject, $skip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaUserLoginData.php
示例11: toObject
public function toObject($object = null, $propertiesToSkip = array())
{
if (is_null($object)) {
$object = new kResponseProfileMapping();
}
return parent::toObject($object, $propertiesToSkip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaResponseProfileMapping.php
示例12: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
$dbObject = new kDistributionThumbDimensions();
}
return parent::toObject($dbObject, $skip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaDistributionThumbDimensions.php
示例13: toObject
public function toObject($dbData = null, $props_to_skip = array())
{
if (is_null($dbData)) {
$dbData = new kConvertCollectionFlavorData();
}
return parent::toObject($dbData, $props_to_skip);
}
开发者ID:richhl,项目名称:kalturaCE,代码行数:7,代码来源:KalturaConvertCollectionFlavorData.php
示例14: toObject
public function toObject($objectToFill = null, $propsToSkip = array())
{
if (is_null($objectToFill)) {
$objectToFill = new kScope();
}
return parent::toObject($objectToFill, $propsToSkip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaScope.php
示例15: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
return new kDistributionValidationError();
}
return parent::toObject($dbObject, $skip);
}
开发者ID:richhl,项目名称:kalturaCE,代码行数:7,代码来源:KalturaDistributionValidationError.php
示例16: toObject
public function toObject($object_to_fill = null, $props_to_skip = array())
{
if (is_null($object_to_fill)) {
$object_to_fill = new kBatchHistoryData();
}
return parent::toObject($object_to_fill, $props_to_skip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaBatchHistoryData.php
示例17: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
$dbObject = new KuserKgroup();
}
return parent::toObject($dbObject, $skip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaGroupUser.php
示例18: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
$dbObject = new kAssetDistributionRule();
}
return parent::toObject($dbObject, $skip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaAssetDistributionRule.php
示例19: toObject
public function toObject($dbObject = null, $propsToSkip = array())
{
if (!$dbObject) {
$dbObject = new kLiveEntryRecordingOptions();
}
return parent::toObject($dbObject, $propsToSkip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaLiveEntryRecordingOptions.php
示例20: toObject
public function toObject($object_to_fill = null, $props_to_skip = array())
{
if (!$object_to_fill) {
$object_to_fill = new kEntryReplacementOptions();
}
return parent::toObject($object_to_fill, $props_to_skip);
}
开发者ID:DBezemer,项目名称:server,代码行数:7,代码来源:KalturaEntryReplacementOptions.php
注:本文中的KalturaObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论