WysiwygAppHelper::__construct PHP Method

__construct() public method

Sets the $this->helper to the helper configured in the session
public __construct ( View $View, array $settings = [] ) : void
$View View The View this helper is being attached to.
$settings array Configuration settings for the helper.
return void
    public function __construct(View $View, $settings = array())
    {
        parent::__construct($View, $settings);
        $settings = array_merge(array('_editor' => 'tinymce'), (array) $settings);
        $this->_helperOptions = $settings;
    }

Usage Example

示例#1
0
 /**
  * Sets the $this->helper to the helper configured in the session
  *
  * @param View $View The View this helper is being attached to.
  * @param array $settings Configuration settings for the helper.
  * @return void
  **/
 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     $this->changeEditor($this->_helperOptions['_editor']);
 }