public static function fromDbArray($arr)
 {
     $newArr = new KalturaExternalMediaEntryArray();
     if ($arr == null) {
         return $newArr;
     }
     foreach ($arr as $obj) {
         $nObj = new KalturaExternalMediaEntry();
         $nObj->fromObject($obj);
         $newArr[] = $nObj;
     }
     return $newArr;
 }
 /**
  * Update external media entry. Only the properties that were set will be updated.
  * 
  * @param string $id External media entry id to update
  * @param KalturaExternalMediaEntry $entry External media entry object to update
  * @return KalturaExternalMediaEntry
  */
 function update($id, KalturaExternalMediaEntry $entry)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "entry", $entry->toParams());
     $this->client->queueServiceActionCall("externalmedia_externalmedia", "update", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaExternalMediaEntry");
     return $resultObject;
 }