예제 #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());
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function toString()
 {
     return '<iq type="get" id="' . XML::generateId() . '"><query xmlns="jabber:iq:roster"/></iq>';
 }
예제 #3
0
 /**
  * Get generated id.
  *
  * @return string
  */
 public function getId()
 {
     if (null === $this->id) {
         $this->id = XML::generateId();
     }
     return $this->id;
 }