Esempio n. 1
0
 /**
  * @return string
  */
 public function buildEditor()
 {
     $result = '';
     if ($this->editor) {
         $this->editor->value = $this->getValue();
         $this->editor->setName($this->getName());
         $result = $this->editor->createHtml();
     }
     return $result;
 }
Esempio n. 2
0
 /**
  * @param bool $style
  *
  * @return string
  */
 public function buildEditor($style = false)
 {
     $result = '';
     if ($this->editor) {
         $this->editor->value = $this->getValue();
         $this->editor->setName($this->getName());
         if ($style == true) {
             $result = $this->editor->createHtmlStyle();
         } else {
             $result = $this->editor->createHtml();
         }
     }
     return $result;
 }