original_string: public function registerClientScript()
      {
          if (!empty($this->pluginOptions)) {
              $options = \CJavaScript::encode($this->pluginOptions);
              \Yii::app()->clientScript
                  ->registerScript('Orbit#' . $this->getId(), "$(document).foundation('orbit', {$options});");
          }
  
          if (!empty($this->events)) {
              $this->registerEvents("#{$this->getId()}", $this->events);
          }
      }
code: public function registerClientScript()
      {
          if (!empty($this->pluginOptions)) {
              $options = \CJavaScript::encode($this->pluginOptions);
              \Yii::app()->clientScript
                  ->registerScript('Orbit#' . $this->getId(), "$(document).foundation('orbit', {$options});");
          }
  
          if (!empty($this->events)) {
              $this->registerEvents("#{$this->getId()}", $this->events);
          }
      }
code_tokens: public function registerClientScript ( ) { if ( ! empty ( $ this -> pluginOptions ) ) { $ options = \ CJavaScript :: encode ( $ this -> pluginOptions ) ; \ Yii :: app ( ) -> clientScript -> registerScript ( 'Orbit#' . $ this -> getId ( ) , "$(document).foundation('orbit', {$options});" ) ; } if ( ! empty ( $ this -> events ) ) { $ this -> registerEvents ( "#{$this->getId()}" , $ this -> events ) ; } }
docstring: Registers the plugin script
docstring_tokens: Registers the plugin script