public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($srcObj, $responseProfile);
     /** @var kObjectTask $srcObj */
     $this->deleteType = $srcObj->getDataValue('deleteType');
     $this->flavorParamsIds = implode(',', $srcObj->getDataValue('flavorParamsIds'));
 }
 public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($srcObj, $responseProfile);
     /** @var kObjectTask $srcObj */
     $this->addRemoveType = $srcObj->getDataValue('addRemoveType');
     $this->categoryIds = $srcObj->getDataValue('categoryIds');
 }
 public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($srcObj, $responseProfile);
     /** @var kObjectTask $srcObj */
     $this->metadataProfileId = $srcObj->getDataValue('metadataProfileId');
     $this->metadataObjectType = $srcObj->getDataValue('metadataObjectType');
     $this->xslt = $srcObj->getDataValue('xslt');
 }
 public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($srcObj, $responseProfile);
     /** @var kObjectTask $srcObj */
     if ($this->shouldGet('flavorParamsIds', $responseProfile)) {
         $this->flavorParamsIds = implode(',', $srcObj->getDataValue('flavorParamsIds'));
     }
     if ($this->shouldGet('reconvert', $responseProfile)) {
         $this->reconvert = $srcObj->getDataValue('reconvert');
     }
 }
예제 #5
0
 public static function fromDbArray(array $dbArray, KalturaDetachedResponseProfile $responseProfile = null)
 {
     $apiArray = new KalturaObjectTaskArray();
     foreach ($dbArray as $dbObject) {
         /** @var kObjectTask $dbObject */
         $apiObject = KalturaObjectTask::getInstanceByDbObject($dbObject);
         if (is_null($apiObject)) {
             throw new Exception('Couldn\'t load api object for db object ' . $dbObject->getType());
         }
         $apiObject->fromObject($dbObject, $responseProfile);
         $apiArray[] = $apiObject;
     }
     return $apiArray;
 }
 public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($srcObj, $responseProfile);
     /** @var kObjectTask $srcObj */
     $this->distributionProfileId = $srcObj->getDataValue('distributionProfileId');
 }
 public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($srcObj, $responseProfile);
     /** @var kObjectTask $srcObj */
     $this->eventNotificationTemplateId = $srcObj->getDataValue('eventNotificationTemplateId');
 }