Datatypes\Textrich\PrevalueEditor::load PHP Method

load() public method

Load Textrich prevalue editor
public load ( ) : string
return string
    public function load()
    {
        $parameters = $this->getConfig();
        $ckeditor = new CkEditor();
        if (empty($parameters) or !is_array($parameters)) {
            $parameters = array();
        }
        $ckeditor->setParameters($parameters);
        return $this->addPath(__DIR__)->render('ckeditor-prevalue.phtml', array('textrich' => $ckeditor->getAllItems()));
    }

Usage Example

Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testLoad()
 {
     $this->assertInternalType('string', $this->object->load());
 }
PrevalueEditor