本文整理汇总了PHP中KalturaObject::toUpdatableObject方法的典型用法代码示例。如果您正苦于以下问题:PHP KalturaObject::toUpdatableObject方法的具体用法?PHP KalturaObject::toUpdatableObject怎么用?PHP KalturaObject::toUpdatableObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KalturaObject
的用法示例。
在下文中一共展示了KalturaObject::toUpdatableObject方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: toUpdatableObject
public function toUpdatableObject($dbObject, $skip = array())
{
parent::toUpdatableObject($dbObject, $skip);
if ($this->restrictions !== null && $this->restrictions instanceof KalturaRestrictionArray) {
$dbObject->clearRestrictions();
foreach ($this->restrictions as $restriction) {
$dbRestriction = KalturaRestrictionFactory::getDbInstanceApiObject($restriction);
$restriction->toObject($dbRestriction);
$dbObject->setRestriction($dbRestriction);
}
}
}
示例2: toUpdatableObject
public function toUpdatableObject($objectToFill, $propsToSkip = array())
{
parent::toUpdatableObject($objectToFill, $propsToSkip);
if ($this->cropDimensions !== null) {
$this->cropDimensions->toUpdatableObject($objectToFill);
}
}
示例3: toUpdatableObject
public function toUpdatableObject($dbObject, $skip = array())
{
/* @var $dbObject accessControl */
$rules = $dbObject->getRules();
foreach ($rules as $rule) {
if (!$rule instanceof kAccessControlRestriction) {
throw new KalturaAPIException(KalturaErrors::ACCESS_CONTROL_NEW_VERSION_UPDATE, $dbObject->getId());
}
}
parent::toUpdatableObject($dbObject, $skip);
}