public static function fromDbArray($arr) { $newArr = new KalturaVirusScanProfileArray(); if ($arr == null) { return $newArr; } foreach ($arr as $obj) { $nObj = new KalturaVirusScanProfile(); $nObj->fromObject($obj); $newArr[] = $nObj; } return $newArr; }
/** * Mark the virus scan profile as deleted * * @action delete * @param int $virusScanProfileId * @return KalturaVirusScanProfile * * @throws KalturaErrors::INVALID_OBJECT_ID */ function deleteAction($virusScanProfileId) { $dbVirusScanProfile = VirusScanProfilePeer::retrieveByPK($virusScanProfileId); if (!$dbVirusScanProfile) { throw new KalturaAPIException(KalturaErrors::INVALID_OBJECT_ID, $virusScanProfileId); } $dbVirusScanProfile->setStatus(KalturaVirusScanProfileStatus::DELETED); $dbVirusScanProfile->save(); $virusScanProfile = new KalturaVirusScanProfile(); $virusScanProfile->fromObject($dbVirusScanProfile); return $virusScanProfile; }