Ejemplo n.º 1
0
 /**
  * Delete live channel segment by id
  * 
  * @action delete
  * @param int $id
  * 
  * @throws KalturaErrors::LIVE_CHANNEL_SEGMENT_ID_NOT_FOUND
  */
 function deleteAction($id)
 {
     $dbLiveChannelSegment = LiveChannelSegmentPeer::retrieveByPK($id);
     if (!$dbLiveChannelSegment) {
         throw new KalturaAPIException(KalturaErrors::LIVE_CHANNEL_SEGMENT_ID_NOT_FOUND, $id);
     }
     $dbLiveChannelSegment->setStatus(LiveChannelSegmentStatus::DELETED);
     $dbLiveChannelSegment->save();
 }