Example #1
0
 public function getOutput()
 {
     if (!is_null($this->_legend)) {
         $this->prependChild($this->_legend);
     }
     return parent::getOutput();
 }
Example #2
0
 public function getOutput()
 {
     $this->setAttribute('data', $this->filename);
     $url = new HTMLElement('param');
     $url->setAttribute('name', 'src');
     $url->setAttribute('value', $this->filename);
     $this->appendChild($url);
     $url = new HTMLElement('param');
     $url->setAttribute('name', 'url');
     $url->setAttribute('value', $this->filename);
     $this->appendChild($url);
     $url = new HTMLElement('param');
     $url->setAttribute('name', 'autoplay');
     $url->setAttribute('value', $this->autostart);
     $this->appendChild($url);
     $color = new HTMLElement('param');
     $color->setAttribute('name', 'color');
     $color->setAttribute('value', '#FFFFFF');
     $this->appendChild($color);
     return parent::getOutput();
 }
Example #3
0
 public function getOutput()
 {
     if (empty($this->newHeight)) {
         $this->setStyle('height', $this->getHeight() . 'px');
     } else {
         $this->setStyle('height', $this->newHeight . 'px');
     }
     if (!empty($this->newWidth)) {
         $this->setStyle('width', $this->newWidth . 'px');
     }
     return parent::getOutput();
 }
Example #4
0
 /**
  *
  * @param mixed $instante
  * @param mixed $comparator
  * @return HTMLElement
  */
 private function optionGenerator($instante, $comparator)
 {
     $instante = $instante < 10 ? "0" . $instante : $instante;
     $option = new HTMLElement("option");
     if ($instante == $comparator) {
         $option->selected = "selected";
     }
     $option->value = "{$instante}";
     $option->appendChild("{$instante}");
     return $option->getOutput();
 }