Update excluded audit attributes.

@return void
768505
protected function updateAuditExclusions()
    {
        $this->auditableExclusions = $this->getAuditExclude();

        // When in strict mode, hidden and non visible attributes are excluded
        if ($this->getAuditStrict()) {
            $this->auditableExclusions = array_merge($this->auditableExclusions, $this->hidden);

            if (count($this->visible)) {
                $invisible = array_diff(array_keys($this->attributes), $this->visible);
                $this->auditableExclusions = array_merge($this->auditableExclusions, $invisible);
            }
        }

        if (! $this->getAuditTimestamps()) {
            array_push($this->auditableExclusions, static::CREATED_AT, static::UPDATED_AT);

            $this->auditableExclusions[] = defined('static::DELETED_AT') ? static::DELETED_AT : 'deleted_at';
        }

        $attributes = array_except($this->attributes, $this->auditableExclusions);

        foreach ($attributes as $attribute => $value) {
            // Apart from null, non scalar values will be excluded
            if (is_object($value) && ! method_exists($value, '__toString') || is_array($value)) {
                $this->auditableExclusions[] = $attribute;
            }
        }
    }
55817
public function addMissingAttributes()
    {
        foreach ($this->getSchema() as $key => $settings) {
            if (!array_has($this->attributes, $key)) {
                array_set($this->attributes, $key, array_get($settings, 'default', null));
            }
        }
    }
289195
public function apply()
    {
        $this->backup = is_file($this->name) ? file_get_contents($this->name) : new NotSet();

        file_put_contents($this->name, $this->value);
    }
317316
public function updateHref() {
		if ( $this->href !== null && !$this->isDisabled() ) {
			$this->button->setAttributes( [ 'href' => $this->href ] );
		} else {
			$this->button->removeAttributes( [ 'href' ] );
		}
		return $this;
	}
896203
public function setAsNotModified()
    {
        $this->setStatusCode(304);
        $this->setContent('');

        // remove headers that MUST NOT be included with 304 Not Modified responses
        $headersToRemove = [
            'Allow',
            'Content-Encoding',
            'Content-Language',
            'Content-Length',
            'Content-MD5',
            'Content-Type',
            'Last-Modified'
        ];
        foreach ($headersToRemove as $header) {
            $this->headers->removeKey($header);
        }

        return $this;
    }
799974
protected function auditDeletedAttributes(array &$old, array &$new)
    {
        foreach ($this->attributes as $attribute => $value) {
            if ($this->isAttributeAuditable($attribute)) {
                $old[$attribute] = $value;
            }
        }
    }
725980
public function updateAttributes(&$attributes)
    {
        if ($validator = $this->getValidator()) {
            
            if ($extra = $validator->getAttributesForField($this->owner)) {
                $attributes = array_merge($attributes, $extra);
            }
            
        }
    }
182204
protected function __update()
	{
		/** Rebase array indices */
		parent::__update();

		if ( $this->count() && $this->attribute instanceof DOMAttr ) {
			$this->attribute->value = (string) $this;
		}
	}
466232
public function updateDepth()
    {
        $parentTag = $this->getParent( true );
        $depth = $parentTag instanceof self ? $parentTag->attribute( 'depth' ) + 1 : 1;

        $this->setAttribute( 'depth', $depth );
        $this->store();

        foreach ( $this->getSynonyms( true ) as $s )
        {
            $s->setAttribute( 'depth', $depth );
            $s->store();
        }

        foreach ( $this->getChildren( 0, null, true ) as $c )
        {
            $c->updateDepth();
        }
    }
278887
private function _setAttributes()
    {
        if (isset($this->_tokenData['sub'])) {
            $user_data = $this->_tokenData;

            // Remove the values that are part of the JWT and not user attributes.
            unset($user_data['sub']);
            unset($user_data['exp']);
            unset($user_data['nbf']);
            unset($user_data['aud']);
            unset($user_data['iss']);
            unset($user_data['jti']);
            unset($user_data['iat']);

            $this->attributes = $user_data;
            if (array_key_exists('eduPersonEntitlement', $this->attributes)) {
                if (is_array($this->attributes['eduPersonEntitlement'])) {
                    $this->entitlements = $this->attributes['eduPersonEntitlement'];
                } else {
                    $this->entitlements = [$this->attributes['eduPersonEntitlement']];
                }
            } else {
                $this->entitlements = [];
            }
        } else {
            throw new \Exception("No principal found!", 400);
        }
    }
1136289
public function updateAttribute($attrName, $value)
    {
        $this->setAttribute($attrName, $value);
        return $this->save(['skip_validation' => true, 'action' => 'update']);
    }
318304
public function updateViews()
    {
        //preventing edit for anyone except malladmin
        if (\OxidEsales\Eshop\Core\Registry::getSession()->getVariable("malladmin")) {
            $oMetaData = oxNew(\OxidEsales\Eshop\Core\DbMetaDataHandler::class);
            $this->_aViewData["blViewSuccess"] = $oMetaData->updateViews();
        }
    }
1117533
private function executeExtraUpdates()
    {
        foreach ($this->extraUpdates as $oid => $update) {
            [$entity, $changeset] = $update;

            $this->entityChangeSets[$oid] = $changeset;

            $this->getEntityPersister(get_class($entity))->update($entity);
        }

        $this->extraUpdates = [];
    }
153519
protected function updateRecord()
    {
        $sql = 'UPDATE '.$this->fq_name;
        $sets = '';
        $where = '1=1';
        $set_args = array();
        $where_args = array();
        $table_def = $this->getDefinition();
        foreach($this->instance as $column => $value) {
            if (in_array($column, $this->unique)) {
                $where .= ' AND '.$this->connection->identifierEscape($column).' = ?';
                $where_args[] = $value;
            } else {
                if (isset($this->columns[$column]['increment']) && $this->columns[$column]['increment']) {
                    continue;
                } else if (!isset($table_def[$column])) {
                    // underlying table is missing this column
                    continue;
                }
                $sets .= ' '.$this->connection->identifierEscape($column).' = ?,';
                $set_args[] = $value;
            }
        }
        $sets = substr($sets,0,strlen($sets)-1);

        $sql .= ' SET '.$sets.' WHERE '.$where;
        $all_args = $set_args;
        foreach ($where_args as $a) {
            $all_args[] = $a;
        }
        $prep = $this->connection->prepare($sql);
        $result = $this->connection->execute($prep, $all_args);

        if ($result) {
            $this->record_changed = false;
        }

        return $result ? true : false;
    }
356200
protected function applyConditions()
    {
        $attributes = ['id', 'handle', 'class', 'scope'];

        foreach ($attributes as $attribute) {
            if (null !== ($value = $this->{$attribute})) {
                $this->andWhere(Db::parseParam($attribute, $value));
            }
        }
    }
755736
private function replaceAttributesWithChange()
    {
        if (($change = static::lookupRequestedChange())
            && $change->key == $this->getKey()) {
            $this->attributes = array_merge(
                $this->attributes,
                $this->attributesAtChange($change)
            );
        }
    }
1286105
public function setAsNotModified()
    {
        $this->setStatusCode(304)->setContent(null);

        $headersToRemove = [
            'Allow',
            'Content-Encoding',
            'Content-Language',
            'Content-Length',
            'Content-MD5',
            'Content-Type',
            'Last-Modified',
        ];

        foreach ($headersToRemove as $header) {
            //remove header key
            $this->headers->remove($header);
        }

        return $this;
    }