Exemple #1
0
 /**
  * @see Control::render()
  */
 public function render(\DOMDocument $domDocument)
 {
     $domElement = parent::render($domDocument);
     if ($this->ratio) {
         $domElement->setAttribute("ratio", $this->ratio);
     }
     if ($this->grading != 1.0) {
         $domElement->setAttribute("grading", $this->grading);
     }
     if ($this->color) {
         $domElement->setAttribute("color", $this->color);
     }
     if ($this->centered) {
         $domElement->setAttribute("centered", 1);
     }
     if ($this->clan) {
         $domElement->setAttribute("clan", $this->clan);
     }
     if (!$this->drawBackground) {
         $domElement->setAttribute("drawbg", 0);
     }
     if (!$this->drawBlockBackground) {
         $domElement->setAttribute("drawblockbg", 0);
     }
     if ($this->style) {
         $domElement->setAttribute("style", $this->style);
     }
     return $domElement;
 }
Exemple #2
0
 /**
  * @see Renderable::render()
  */
 public function render(\DOMDocument $domDocument)
 {
     $domElement = parent::render($domDocument);
     if ($this->data) {
         $domElement->setAttribute("data", $this->data);
     }
     if ($this->dataId) {
         $domElement->setAttribute("dataid", $this->dataId);
     }
     if ($this->play) {
         $domElement->setAttribute("play", 1);
     }
     if (!$this->looping) {
         $domElement->setAttribute("looping", 0);
     }
     if ($this->music) {
         $domElement->setAttribute("music", 1);
     }
     if ($this->volume != 1.0) {
         $domElement->setAttribute("volume", $this->volume);
     }
     if ($this->scriptEvents) {
         $domElement->setAttribute("scriptevents", 1);
     }
     return $domElement;
 }
Exemple #3
0
 /**
  * @see Renderable::render()
  */
 public function render(\DOMDocument $domDocument)
 {
     $domElement = parent::render($domDocument);
     if ($this->text) {
         $domElement->setAttribute("text", $this->text);
     }
     if ($this->textId) {
         $domElement->setAttribute("textid", $this->textId);
     }
     if ($this->textPrefix) {
         $domElement->setAttribute("textprefix", $this->textPrefix);
     }
     if ($this->textEmboss) {
         $domElement->setAttribute("textemboss", $this->textEmboss);
     }
     if ($this->translate) {
         $domElement->setAttribute("translate", $this->translate);
     }
     if ($this->maxLines >= 0) {
         $domElement->setAttribute("maxlines", $this->maxLines);
     }
     if ($this->opacity != 1.0) {
         $domElement->setAttribute("opacity", $this->opacity);
     }
     if ($this->action) {
         $domElement->setAttribute("action", $this->action);
     }
     if ($this->actionKey >= 0) {
         $domElement->setAttribute("actionkey", $this->actionKey);
     }
     if ($this->url) {
         $domElement->setAttribute("url", $this->url);
     }
     if ($this->urlId) {
         $domElement->setAttribute("urlid", $this->urlId);
     }
     if ($this->manialink) {
         $domElement->setAttribute("manialink", $this->manialink);
     }
     if ($this->manialinkId) {
         $domElement->setAttribute("manialinkid", $this->manialinkId);
     }
     if ($this->autoNewLine) {
         $domElement->setAttribute("autonewline", $this->autoNewLine);
     }
     if ($this->scriptEvents) {
         $domElement->setAttribute("scriptevents", $this->scriptEvents);
     }
     if ($this->style) {
         $domElement->setAttribute("style", $this->style);
     }
     if ($this->textSize >= 0) {
         $domElement->setAttribute("textsize", $this->textSize);
     }
     if ($this->textFont) {
         $domElement->setAttribute("textfont", $this->textFont);
     }
     if ($this->textColor) {
         $domElement->setAttribute("textcolor", $this->textColor);
     }
     if ($this->areaColor) {
         $domElement->setAttribute("focusareacolor1", $this->areaColor);
     }
     if ($this->focusAreaColor) {
         $domElement->setAttribute("focusareacolor2", $this->focusAreaColor);
     }
     return $domElement;
 }
Exemple #4
0
 /**
  * @see Renderable::render()
  */
 public function render(\DOMDocument $domDocument)
 {
     $domElement = parent::render($domDocument);
     if ($this->imageUrl) {
         $domElement->setAttribute("image", $this->imageUrl);
     }
     if ($this->imageId) {
         $domElement->setAttribute("imageid", $this->imageId);
     }
     if ($this->imageFocusUrl) {
         $domElement->setAttribute("imagefocus", $this->imageFocusUrl);
     }
     if ($this->imageFocusId) {
         $domElement->setAttribute("imagefocusid", $this->imageFocusId);
     }
     if ($this->colorize) {
         $domElement->setAttribute("colorize", $this->colorize);
     }
     if ($this->modulizeColor) {
         $domElement->setAttribute("modulizecolor", $this->modulizeColor);
     }
     if (!$this->autoScale) {
         $domElement->setAttribute("autoscale", 0);
     }
     if ($this->keepRatio) {
         $domElement->setAttribute("keepratio", $this->keepRatio);
     }
     if ($this->opacity !== 1.0) {
         $domElement->setAttribute("opacity", $this->opacity);
     }
     if ($this->backgroundColor) {
         $domElement->setAttribute("bgcolor", $this->backgroundColor);
     }
     if ($this->action) {
         $domElement->setAttribute("action", $this->action);
     }
     if ($this->actionKey) {
         $domElement->setAttribute("actionkey", $this->actionKey);
     }
     if ($this->url) {
         $domElement->setAttribute("url", $this->url);
     }
     if ($this->urlId) {
         $domElement->setAttribute("urlid", $this->urlId);
     }
     if ($this->manialink) {
         $domElement->setAttribute("manialink", $this->manialink);
     }
     if ($this->manialinkId) {
         $domElement->setAttribute("manialinkid", $this->manialinkId);
     }
     if ($this->scriptEvents) {
         $domElement->setAttribute("scriptevents", 1);
     }
     if ($this->style) {
         $domElement->setAttribute("style", $this->style);
     }
     if ($this->subStyle) {
         $domElement->setAttribute("substyle", $this->subStyle);
     }
     if ($this->styleSelected) {
         $domElement->setAttribute("styleselected", 1);
     }
     return $domElement;
 }
Exemple #5
0
 /**
  * @see Renderable::render()
  */
 public function render(\DOMDocument $domDocument)
 {
     $domElement = parent::render($domDocument);
     if ($this->name) {
         $domElement->setAttribute("name", $this->name);
     }
     if ($this->default !== null) {
         $domElement->setAttribute("default", $this->default);
     } else {
         if ($this->autoComplete) {
             $value = Parameters::getValue($this->name);
             if ($value) {
                 $domElement->setAttribute("default", $value);
             }
         }
     }
     if ($this->autoNewLine) {
         $domElement->setAttribute("autonewline", 1);
     }
     if ($this->scriptEvents) {
         $domElement->setAttribute("scriptevents", 1);
     }
     if ($this->style) {
         $domElement->setAttribute("style", $this->style);
     }
     if ($this->textColor) {
         $domElement->setAttribute("textcolor", $this->textColor);
     }
     if ($this->textSize) {
         $domElement->setAttribute("textsize", $this->textSize);
     }
     if ($this->textFont) {
         $domElement->setAttribute("textfont", $this->textFont);
     }
     if ($this->areaColor) {
         $domElement->setAttribute("focusareacolor1", $this->areaColor);
     }
     if ($this->focusAreaColor) {
         $domElement->setAttribute("focusareacolor2", $this->focusAreaColor);
     }
     return $domElement;
 }
Exemple #6
0
 /**
  * @see Renderable::render()
  */
 public function render(\DOMDocument $domDocument)
 {
     $domElement = parent::render($domDocument);
     if ($this->format) {
         $formatXml = $this->format->render($domDocument);
         $domElement->appendChild($formatXml);
     }
     foreach ($this->children as $child) {
         $childXmlElement = $child->render($domDocument);
         $domElement->appendChild($childXmlElement);
     }
     return $domElement;
 }
 /**
  * @see Renderable::render()
  */
 public function render(\DOMDocument $domDocument)
 {
     $domElement = parent::render($domDocument);
     if ($this->model) {
         $this->model->checkId();
         $domElement->setAttribute("modelid", $this->model->getId());
     } else {
         if ($this->modelId) {
             $domElement->setAttribute("modelid", $this->modelId);
         }
     }
     return $domElement;
 }