Updates dataCollection from entries.
@param $entries
15221
public function updateDataCollection($entries)
    {
        $process = false;
        $data = [];
        $start = ($this->currentPage - 1) * $this->dataCollection->getPageSize();
        foreach ($entries as $key => $value) {
            if (substr($key, 0, 6) == "entry_") {
                $array = explode("_", str_replace("entry_", "", $key));
                setType($value, $array[1]);
                $data[$array[0]] = $value;
                $process = true;
            }
        }
        if ($process) {
            $lines = $this->dataCollection->getData($this->currentPage);
            $counter = 0;
            foreach ($lines as $i => $lineData) {
                $newData = $lineData;
                foreach ($this->columns as $columnData) {
                    if ($columnData instanceof InputColumn) {
                        $newData[$columnData->getKey()] = $data[$counter];
                    }
                }
                $this->dataCollection->setDataByIndex($start + $counter, $newData);
                $counter++;
            }
        }
    }
87956
protected function processItems(array $items)
    {
        $processedItems = [];

        foreach ($items as $entry) {
            $processedItems[] = ModelFactory::make($entry);
        }

        $this->items = new ModelCollection($processedItems);
    }
469633
private function addEntry($entry)
	{
		if($entry != null)
		{
			if($this->entries == null)
				$this->entries = array();
			$this->entries[] = $entry;
		}
	}
541594
public function selfUpdate(array $properties)
  {
    $this->execute("clientupdate", $properties);

    foreach($properties as $ident => $value)
    {
      $this->whoamiSet($ident, $value);
    }
  }
1295431
public function setEvents($events)
    {
        $events = (array)$events;
        foreach ($events as $event) {
            $this->addEvent($event);
        }
    }
494244
public function addRaw($data)
	{
		$this->validateData($data);

		$data['location'] = trim($data['location'], '/');

		$this->entries[] = $this->replaceAttributes($data);
	}
1295460
private function prepareEntriesToDeliver(array $entries)
    {
        $binaryAttributes = ['objectguid', 'objectsid'];

        foreach ($entries as $key => &$entry) {
            foreach ($binaryAttributes as $binaryAttribute) {
                if (array_key_exists($binaryAttribute, $entry)) {
                    if (is_array($entry[$binaryAttribute])) {
                        foreach ($entry[$binaryAttribute] as &$value) {
                            $value = bin2hex($value);
                        }
                    } else {
                        $entry[$binaryAttribute] = bin2hex($entry[$binaryAttribute]);
                    }
                }
            }
        }

        return $entries;
    }
264711
public function setCollections(array $value)
    {
        if (array_key_exists('read', $value)) {
            $this->setReadCollections($value['read']);
        }
        if (array_key_exists('write', $value)) {
            $this->setWriteCollections($value['write']);
        }
    }
366356
public function update(array $values)
    {
        // migrate the collection, if needed
        Schema\Builder::getInstance()->dynamic($this->query->getModel(), $values);

        $allowed = $this->fireEvent('updating_multiple', array($this, $values));

        if ($allowed === false) {
            return false;
        } elseif (is_array($allowed)) {
            $values = $allowed;
        }

        $result = $this->query->update($values);
        $this->fireEvent('updated_multiple', array($this, $values));

        return $result;
    }
1292528
public static void updateAll(DataStore dataStore, Iterable<Update> updates, Set<String> tags) {
        updateAll(dataStore, updates.iterator(), tags);
    }
186034
public final void removeEntries(Entry<?>... entries) {
        if (entries != null) {
            for (Entry<?> entry : entries) {
                entry.setCalendar(null);
            }
        }
    }
139715
protected function setItems($items)
    {
        $this->items = $items instanceof Collection ? $items : Collection::make($items);

        $this->hasMore = $this->items->count() > $this->perPage;

        $this->items = $this->items->slice(0, $this->perPage);
    }
833499
public function collections(array $collections) : void {
        foreach ($collections as $name => $callback) {
            $this->make($name, $callback);
        }
    }
446471
public function onDedimaniaRecordsLoaded($records)
    {
        if (count($records) > 0) {
            $this->widget->setDedimaniaRecord($records[0]);
        } else {
            $this->widget->setDedimaniaRecord(null);
        }
        $this->widget->update($this->allPlayers);
    }
773822
protected function updateCollectionItem()
    {
        $this->controlAccess('collection_item_edit');

        if ($this->collection_item->update($this->data_collection_item['collection_item_id'], $this->getSubmitted())) {
            $url = "admin/content/collection-item/{$this->data_collection['collection_id']}";
            $this->redirect($url, $this->text('Collection item has been updated'), 'success');
        }

        $this->redirect('', $this->text('Collection item has not been updated'), 'warning');
    }
18716
public function loadFromArray(array $entries)
     {
         foreach ($entries as $var=>$val) {
             switch ($var) {
                case 'name': $this->setName($val); break;
                case 'version': $this->setVersion($val); break;
                case 'relative_path': $this->setRelativePath($val); break;
                case 'assets_path':
                case 'path':
                    $this->setAssetsPath($val); break;
                case 'assets_presets': $this->setAssetsPresets($val); break;
            }
         }
         return $this;
     }
1045925
private function updateRegistries($entities, $from)
    {
        if (count($entities) >= 0) {
            for ($j = $from; $j >= 0; $j--) {
                /** @var RegistryInterface $registry */
                $registry = $this->registries[ $j ];
                /** @var AbstractEntity $entity */
                foreach ($entities as $entity) {
                    $registry->add($entity->getId(), $entity);
                }
            }
        }
    }