Example #1
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->flavorParamsId)) {
         $this->flavorParamsId = (int) $xml->flavorParamsId;
     }
     if (count($xml->width)) {
         $this->width = (int) $xml->width;
     }
     if (count($xml->height)) {
         $this->height = (int) $xml->height;
     }
     if (count($xml->bitrate)) {
         $this->bitrate = (int) $xml->bitrate;
     }
     if (count($xml->frameRate)) {
         $this->frameRate = (double) $xml->frameRate;
     }
     if (!empty($xml->isOriginal)) {
         $this->isOriginal = true;
     }
     if (!empty($xml->isWeb)) {
         $this->isWeb = true;
     }
     $this->containerFormat = (string) $xml->containerFormat;
     $this->videoCodecId = (string) $xml->videoCodecId;
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->filename = (string) $xml->filename;
     $this->title = (string) $xml->title;
     $this->format = (string) $xml->format;
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
 }
Example #3
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->thumbParamsId)) {
         $this->thumbParamsId = (int) $xml->thumbParamsId;
     }
     if (count($xml->width)) {
         $this->width = (int) $xml->width;
     }
     if (count($xml->height)) {
         $this->height = (int) $xml->height;
     }
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
 }
Example #4
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->captionParamsId)) {
         $this->captionParamsId = (int) $xml->captionParamsId;
     }
     $this->language = (string) $xml->language;
     $this->languageCode = (string) $xml->languageCode;
     if (count($xml->isDefault)) {
         $this->isDefault = (int) $xml->isDefault;
     }
     $this->label = (string) $xml->label;
     $this->format = (string) $xml->format;
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
 }