示例#1
0
 /**
  * Mark the KalturaDrmProfile object as deleted
  * 
  * @action delete
  * @param int $drmProfileId 
  * @return KalturaDrmProfile
  *
  * @throws KalturaErrors::INVALID_OBJECT_ID
  */
 public function deleteAction($drmProfileId)
 {
     $dbDrmProfile = DrmProfilePeer::retrieveByPK($drmProfileId);
     if (!$dbDrmProfile) {
         throw new KalturaAPIException(KalturaErrors::INVALID_OBJECT_ID, $drmProfileId);
     }
     $dbDrmProfile->setStatus(DrmProfileStatus::DELETED);
     $dbDrmProfile->save();
     $drmProfile = KalturaDrmProfile::getInstanceByType($dbDrmProfile->getProvider());
     $drmProfile->fromObject($dbDrmProfile, $this->getResponseProfile());
     return $drmProfile;
 }