public static function fromDbArray($arr, KalturaDetachedResponseProfile $responseProfile = null)
 {
     $newArr = new KalturaScheduledTaskProfileArray();
     if ($arr == null) {
         return $newArr;
     }
     foreach ($arr as $obj) {
         $nObj = new KalturaScheduledTaskProfile();
         $nObj->fromObject($obj, $responseProfile);
         $newArr[] = $nObj;
     }
     return $newArr;
 }
 /**
  * Update an existing scheduled task profile
  *
  * @action update
  * @param int $id
  * @param KalturaScheduledTaskProfile $scheduledTaskProfile
  * @return KalturaScheduledTaskProfile
  *
  * @throws KalturaScheduledTaskErrors::SCHEDULED_TASK_PROFILE_NOT_FOUND
  * @disableRelativeTime $scheduledTaskProfile
  */
 public function updateAction($id, KalturaScheduledTaskProfile $scheduledTaskProfile)
 {
     // get the object
     $dbScheduledTaskProfile = ScheduledTaskProfilePeer::retrieveByPK($id);
     if (!$dbScheduledTaskProfile) {
         throw new KalturaAPIException(KalturaScheduledTaskErrors::SCHEDULED_TASK_PROFILE_NOT_FOUND, $id);
     }
     // save the object
     /** @var ScheduledTaskProfile $dbScheduledTaskProfile */
     $dbScheduledTaskProfile = $scheduledTaskProfile->toUpdatableObject($dbScheduledTaskProfile);
     $dbScheduledTaskProfile->save();
     // return the saved object
     $scheduledTaskProfile = new KalturaScheduledTaskProfile();
     $scheduledTaskProfile->fromObject($dbScheduledTaskProfile, $this->getResponseProfile());
     return $scheduledTaskProfile;
 }
 /**
  * Update an existing scheduled task profile
  * 
  * @param int $id 
  * @param KalturaScheduledTaskProfile $scheduledTaskProfile 
  * @return KalturaScheduledTaskProfile
  */
 function update($id, KalturaScheduledTaskProfile $scheduledTaskProfile)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "scheduledTaskProfile", $scheduledTaskProfile->toParams());
     $this->client->queueServiceActionCall("scheduledtask_scheduledtaskprofile", "update", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaScheduledTaskProfile");
     return $resultObject;
 }