Update room
All values are required!

@param string $name
@param bool $is_public
@param bool $is_archived
@param bool $is_guest_accessible
@param string $topic
@param int|string $owner_user_id
328662
public function update($name, $is_public, $is_archived, $is_guest_accessible, $topic, $owner_user_id)
    {
        $queryParams = array(
            'name' => $name,
            'privacy' => (($is_public === true) ? 'public' : 'private' ),
            'is_archived' => $is_archived,
            'is_guest_accessible' => $is_guest_accessible,
            'topic' => $topic,
            'owner' => array(
                'id' => $owner_user_id,
            ),
        );
        $room_id_or_name = $this->getId();

        $response = $this->request->put('room/'.$room_id_or_name.'', $queryParams);

        return $this->request->returnResponseObject($response);
    }
652345
public function update($name, $email, $mention_name, $timezone = 'UTC', $is_group_admin = false, $title = '', $password = null)
    {
        $queryParams = array(
            'name' => $name,
            'title' => $title,
            'mention_name' => $mention_name,
            'is_group_admin' => $is_group_admin,
            'timezone' => $timezone,
            'email' => $email,
        );
        if ($password != null) {
            $queryParams['password'] = $password;
        }
        $user_id = $this->getId();

        $response = $this->request->put('user/'.$user_id.'', $queryParams);

        return $this->request->returnResponseObject($response);
    }
15919
public function update(SubjectInterface $subject)
   {
       try {
           foreach ($this->observer as $value) {
               $value->update($subject);
           }
       } catch (Throwable $e) {
           throw new ViewException(
               "Can't update " . static::class . " " . $e->getMessage()
           );
       }
   }
375284
public function update($id, $title, $content, $slug, array $tags, $active, $user_id, DateTime $publish_date)
	{
		$post = $this->find($id);

		// Forget the old cache
		if (Config::get('wardrobe.cache'))
		{
			Cache::forget('post-'.$post->id);
		}

		$post->fill(compact('title', 'content', 'slug', 'active', 'user_id', 'publish_date'))->save();

		$post->tags()->delete();

		$post->tags()->createMany($this->prepareTags($tags));

		return $post;
	}
532188
public function do_delete($topic)
    {
        /** @var \ManaPHP\DbInterface $db */
        $db = $this->_di->getShared($this->_db);

        $db->delete($this->_source, ['topic' => $topic]);
    }
42416
def update_post_relations(user, topic, deleting=False):
    
    if deleting:
        user.post_count = user.post_count - 1
    else:
        user.post_count += 1
    user.save(update_fields=['post_count'])

    topic.modified     = datetime.now()
    topic.modified_int = time.time()
    topic.save(update_fields=['modified', 'modified_int'])
127141
public function set($idSite, $period, $name, $value)
    {
        $row = & $this->get($idSite, $period);
        $row[$name] = $value;
    }
1046913
static function updateLastVisit( $userID, $updateLoginCount = false )
    {
        if ( isset( $GLOBALS['eZUserUpdatedLastVisit'] ) )
            return;
        $db = eZDB::instance();
        $userID = (int) $userID;
        $userVisitArray = $db->arrayQuery( "SELECT 1 FROM ezuservisit WHERE user_id=$userID" );
        $time = time();

        if ( isset( $userVisitArray[0] ) )
        {
            $loginCountSQL = $updateLoginCount ? ', login_count=login_count+1' : '';
            $db->query( "UPDATE ezuservisit SET last_visit_timestamp=ABS(current_visit_timestamp), current_visit_timestamp=$time$loginCountSQL WHERE user_id=$userID" );
        }
        else
        {
            $intialLoginCount = $updateLoginCount ? 1 : 0;
            $db->query( "INSERT INTO ezuservisit ( current_visit_timestamp, last_visit_timestamp, user_id, login_count ) VALUES ( $time, $time, $userID, $intialLoginCount )" );
        }
        $GLOBALS['eZUserUpdatedLastVisit'] = true;
    }
1206730
public function releaseLock(core_kernel_classes_Resource $resource, $ownerId)
	{
		$lock = $resource->getPropertyValues( $this->getLockProperty () );
		if (count ( $lock ) == 0) {
			return false;
		} elseif (count ( $lock ) > 1) {
			throw new common_exception_InconsistentData('Bad data in lock');
		} else {
			$lockdata = OntoLockData::getLockData ( array_pop ( $lock ) );
			if ($lockdata->getOwnerId() == $ownerId) {
				$resource->removePropertyValues( $this->getLockProperty() );
				return true;
			} else {
				throw new common_exception_Unauthorized ( "The resource is owned by " . $lockdata->getOwnerId ());
			}
		}
	}
92551
def update_room_topic(self):
        """"""
        try:
            response = self.client.api.get_room_topic(self.room_id)
            if "topic" in response and response["topic"] != self.topic:
                self.topic = response["topic"]
                return True
            else:
                return False
        except MatrixRequestError:
            return False
449387
def topic_update(channel, topic_channel):
    

    if topic_channel is not None:
        try:
            channel_message = "Topic channel is now `{}`.".format(topic_channel.name)
        except Exception as e:
            logger.exception(e)
            channel_message = "Topic channel has been updated."
    else:
        channel_message = "Topic channel has been cleared."

    # Create embed UI object
    gui = ui_embed.UI(
            channel,
            "Topic channel updated",
            channel_message,
            modulename=modulename,
            colour=modulecolor_info
    )

    return gui
996306
public function update( string $name, $value ) {
		if ( $this->_user->$name ) {
			return wp_update_user( [
				'ID'  => $this->ID,
				$name => $value
			] );
		} elseif ( $this->$name ) {
			return update_field( $name, $value, $this->_key );
		}
		
		return FALSE;
	}
1084658
def update_room_from_obj(settings, vc_room, room_obj):
    """"""
    vc_room.name = room_obj.name
    if room_obj.ownerName != vc_room.data['owner_identity']:
        owner = get_user_from_identifier(settings, room_obj.ownerName) or User.get_system_user()
        vc_room.vidyo_extension.owned_by_user = owner

    vc_room.data.update({
        'description': room_obj.description,
        'vidyo_id': unicode(room_obj.roomID),
        'url': room_obj.RoomMode.roomURL,
        'owner_identity': room_obj.ownerName,
        'room_pin': room_obj.RoomMode.roomPIN if room_obj.RoomMode.hasPIN else "",
        'moderation_pin': room_obj.RoomMode.moderatorPIN if room_obj.RoomMode.hasModeratorPIN else "",
    })
    vc_room.vidyo_extension.extension = int(room_obj.extension)
478812
function merge_into($topic_id)
	{
		move_posts($this->post_id, $topic_id);
		$this->topic_id = $topic_id;
		$this->_topic = null;
	}
908986
public function updateArchive($uuidSafe, $uuidArchive, $name, $description)
    {
        $parameters = array(
          'name' => $name,
          'description' => $description,
        );

        $this->online->call('/storage/c14/safe/'.$uuidSafe.'/archive/'.$uuidArchive, 'PATCH', $parameters);
    }
1004273
public function setName($name)
    {
        assert(is_string($name));

        if ($this->_name !== null && $this->_name !== $name) {
            throw new ClientException('Should not update the name of an existing collection');
        }

        $this->_name = (string) $name;
    }
162266
@SuppressWarnings("unchecked")
    private void refreshOwnEntries() {

        m_resourcePermissions.removeAllComponents();
        String sitePath = m_cms.getSitePath(m_resource);

        // create new ArrayLists in which inherited and non inherited entries are stored
        ArrayList<CmsAccessControlEntry> ownEntries = new ArrayList<CmsAccessControlEntry>();
        try {
            Iterator<CmsAccessControlEntry> itAces = m_cms.getAccessControlEntries(sitePath, false).iterator();
            HashSet<CmsPermissionBean> newBeans = (HashSet<CmsPermissionBean>)((HashSet<CmsPermissionBean>)(m_permissionToChange)).clone();
            while (itAces.hasNext()) {
                CmsAccessControlEntry curEntry = itAces.next();
                if (!curEntry.isInherited()) {
                    // add the entry to the own rights list
                    CmsPermissionBean bean = CmsPermissionBean.getBeanForPrincipal(
                        m_permissionToChange,
                        CmsPermissionBean.getPrincipalNameFromACE(m_cms, curEntry));
                    if (bean == null) {
                        ownEntries.add(curEntry);
                    } else {
                        if (!bean.isDeleted()) {
                            ownEntries.add(bean.toAccessControlEntry(m_cms, m_resource.getStructureId()));
                        }
                        //No new entry -> remove from new list
                        newBeans.remove(bean);
                    }
                }
            }
            for (CmsPermissionBean newBean : newBeans) {
                if (!newBean.isDeleted()) {
                    ownEntries.add(newBean.toAccessControlEntry(m_cms, m_resource.getStructureId()));
                }
            }
        } catch (CmsException e) {
            // can usually be ignored
        }

        addEntryTableToLayout(ownEntries, m_resourcePermissions, true, false);
    }