public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (!empty($xml->readonly)) { $this->readonly = true; } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->flashVersion)) { $this->flashVersion = (int) $xml->flashVersion; } if (!empty($xml->poly2Bitmap)) { $this->poly2Bitmap = true; } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->flavorParamsId)) { $this->flavorParamsId = (int) $xml->flavorParamsId; } $this->commandLinesStr = (string) $xml->commandLinesStr; $this->flavorParamsVersion = (string) $xml->flavorParamsVersion; $this->flavorAssetId = (string) $xml->flavorAssetId; $this->flavorAssetVersion = (string) $xml->flavorAssetVersion; if (count($xml->readyBehavior)) { $this->readyBehavior = (int) $xml->readyBehavior; } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->densityWidth)) { $this->densityWidth = (int) $xml->densityWidth; } if (count($xml->densityHeight)) { $this->densityHeight = (int) $xml->densityHeight; } if (count($xml->sizeWidth)) { $this->sizeWidth = (int) $xml->sizeWidth; } if (count($xml->sizeHeight)) { $this->sizeHeight = (int) $xml->sizeHeight; } if (count($xml->depth)) { $this->depth = (int) $xml->depth; } }