예제 #1
0
 /**
  * getAttributes
  *
  * @return array
  */
 protected function getAttributes()
 {
     $attributes = parent::getAttributes();
     $attributes['data-codemirror-mode'] = $this->getParam(static::PARAM_CODE_MODE);
     return $attributes;
 }
예제 #2
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_STYLE => new \XLite\Model\WidgetParam\String('Style', $this->getDefaultStyle()));
 }