src/whatsprot.class.php
public function sendSetGroupSubject($gjid, $subject)
    {
        $child = new ProtocolNode('subject', null, null, $subject);
        $node = new ProtocolNode('iq',
            [
                'id'    => $this->createIqId(),
                'type'  => 'set',
                'to'    => $this->getJID($gjid),
                'xmlns' => 'w:g2',
            ], [$child], null);

        $this->sendNode($node);
    }
public function sendSetGroupSubject($gjid, $subject)
    {
        $child = new ProtocolNode('subject', null, null, $subject);
        $node = new ProtocolNode('iq',
            [
                'id'    => $this->createIqId(),
                'type'  => 'set',
                'to'    => $this->getJID($gjid),
                'xmlns' => 'w:g2',
            ], [$child], null);

        $this->sendNode($node);
    }
public function sendSetGroupSubject ( $ gjid , $ subject ) { $ child = new ProtocolNode ( 'subject' , null , null , $ subject ) ; $ node = new ProtocolNode ( 'iq' , [ 'id' => $ this -> createIqId ( ) , 'type' => 'set' , 'to' => $ this -> getJID ( $ gjid ) , 'xmlns' => 'w:g2' , ] , [ $ child ] , null ) ; $ this -> sendNode ( $ node ) ; }
Change group's subject.

@param string $gjid    The group id
@param string $subject The subject
Change group s subject .