本文整理汇总了PHP中KalturaObject类的典型用法代码示例。如果您正苦于以下问题:PHP KalturaObject类的具体用法?PHP KalturaObject怎么用?PHP KalturaObject使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KalturaObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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());
}
}
示例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);
}
示例3: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
$dbObject = new kObjectTask();
}
return parent::toObject($dbObject, $skip);
}
示例4: toObject
public function toObject($object = null, $skipProperties = array())
{
if (!$object) {
$object = new kFilterPager();
}
return parent::toObject($object, $skipProperties);
}
示例5: fromObject
public function fromObject($sourceObject)
{
if (!$sourceObject) {
return;
}
parent::fromObject($sourceObject);
}
示例6: toObject
public function toObject($dbObject = null, $skip = array())
{
if (!$dbObject) {
$dbObject = new kFileSyncDescriptor();
}
return parent::toObject($dbObject, $skip);
}
示例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());
}
}
示例8: toObject
public function toObject($dbObject = null, $propsToSkip = array())
{
if (!$dbObject) {
$dbObject = new kLiveStreamPushPublishConfiguration();
}
return parent::toObject($dbObject, $propsToSkip);
}
示例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;
}
示例10: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
$dbObject = new UserLoginData();
}
return parent::toObject($dbObject, $skip);
}
示例11: toObject
public function toObject($object = null, $propertiesToSkip = array())
{
if (is_null($object)) {
$object = new kResponseProfileMapping();
}
return parent::toObject($object, $propertiesToSkip);
}
示例12: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
$dbObject = new kDistributionThumbDimensions();
}
return parent::toObject($dbObject, $skip);
}
示例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);
}
示例14: toObject
public function toObject($objectToFill = null, $propsToSkip = array())
{
if (is_null($objectToFill)) {
$objectToFill = new kScope();
}
return parent::toObject($objectToFill, $propsToSkip);
}
示例15: toObject
public function toObject($dbObject = null, $skip = array())
{
if (is_null($dbObject)) {
return new kDistributionValidationError();
}
return parent::toObject($dbObject, $skip);
}