本文整理匯總了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);
}