Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function toString()
 {
     return XML::quoteMessage('<message type="%s" id="%s" to="%s"><body>%s</body></message>', $this->getType(), XML::generateId(), $this->getTo(), $this->getMessage());
 }
Esempio n. 2
0
 /**
  * {@inheritDoc}
  */
 public function toString()
 {
     return '<iq type="get" id="' . XML::generateId() . '"><query xmlns="jabber:iq:roster"/></iq>';
 }
 /**
  * Get generated id.
  *
  * @return string
  */
 public function getId()
 {
     if (null === $this->id) {
         $this->id = XML::generateId();
     }
     return $this->id;
 }