Esempio n. 1
0
 /**
  * Update the track properties using an xml element.
  *
  * @param XmlElement $xml The xml element representing the track meta data.
  * @param Controller $controller A controller instance on the playlist's network
  *
  * @return static
  */
 public static function createFromXml(XmlElement $xml, Controller $controller)
 {
     $track = parent::createFromXml($xml, $controller);
     $track->trackNumber = $track->number;
     return $track;
 }
Esempio n. 2
0
 /**
  * Update the track properties using an xml element.
  *
  * @param XmlBase $xml The xml element representing the track meta data.
  * @param Controller $controller A controller instance on the playlist's network
  *
  * @return static
  */
 public static function createFromXml(XmlBase $xml, Controller $controller)
 {
     $track = parent::createFromXml($xml, $controller);
     $track->queueId = $xml->getAttribute("id");
     return $track;
 }