Exemplo n.º 1
0
 /**
  * Registers the needed assets
  */
 public function registerAssets()
 {
     $view = $this->getView();
     StarRatingAsset::register($view)->addLanguage($this->language, 'star-rating_locale_');
     $theme = ArrayHelper::getValue($this->pluginOptions, 'theme');
     if (!empty($theme) && in_array($theme, self::$_themes)) {
         StarRatingThemeAsset::register($view)->addTheme($theme);
     }
     $this->registerPlugin($this->pluginName);
 }
Exemplo n.º 2
0
 /**
  * Registers the needed assets
  */
 public function registerAssets()
 {
     $view = $this->getView();
     StarRatingAsset::register($view);
     $this->registerPlugin('rating');
 }