This repository was archived by the owner on Jan 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
Add user to group #69
Copy link
Copy link
Open
Description
Hello. I need to add a user to group programatically. Now I am register a user programatically but the group is "None".
`<?php
namespace Fabiang\Xmpp\Protocol;
use Fabiang\Xmpp\Util\XML;
/**
-
Register new user
-
@param string $username
-
@param string $password
-
@param string $email
-
@Package XMPP\Protocol
-
@category XMPP
*/
class RegisterUserER implements ProtocolImplementationInterface
{
protected $username;
protected $password;
protected $email;/**
- Constructor.
- @param string $username
- @param string $password
- @param string $email
*/
public function __construct($username, $password, $email)
{
$this->username = $username;
$this->password = $password;
$this->email = $email;
}
/**
- Build XML message
- @return type
*/
public function toString()
{
$query = "%s%s%s";
return XML::quoteMessage($query, XML::generateId(), (string) $this->username, (string) $this->password, (string) $this->email);
}
}
`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels