SDK
SDK PHP v3.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

setContent #

Replaces the content of User.

Updating a user will have no impact until the create or replace method is called.


setContent(data) #

Arguments Type Description
data JSON Object User content

Return Value #

Returns the User object.

Usage #

Copied to clipboard!
<?php
use Kuzzle\Security\User;
// ...
$userContent = [
  'profileIds' => ['profileId']
];
/*
  * @var $user User
  */
$user->setContent($userContent);