original_string: function getValidationScript($options = null)
      {
          switch ($this->name) {
              case 'minlength':
                  $test = '{jsVar}.length < '.$options;
                  break;
              case 'maxlength':
                  $test = '{jsVar}.length > '.$options;
                  break;
              default:
                  $test = '({jsVar}.length < '.$options[0].' || {jsVar}.length > '.$options[1].')';
          }
          return array('', "{jsVar} != '' && {$test}");
      }
code: function getValidationScript($options = null)
      {
          switch ($this->name) {
              case 'minlength':
                  $test = '{jsVar}.length < '.$options;
                  break;
              case 'maxlength':
                  $test = '{jsVar}.length > '.$options;
                  break;
              default:
                  $test = '({jsVar}.length < '.$options[0].' || {jsVar}.length > '.$options[1].')';
          }
          return array('', "{jsVar} != '' && {$test}");
      }
code_tokens: function getValidationScript ( $ options = null ) { switch ( $ this -> name ) { case 'minlength' : $ test = '{jsVar}.length < ' . $ options ; break ; case 'maxlength' : $ test = '{jsVar}.length > ' . $ options ; break ; default : $ test = '({jsVar}.length < ' . $ options [ 0 ] . ' || {jsVar}.length > ' . $ options [ 1 ] . ')' ; } return array ( '' , "{jsVar} != '' && {$test}" ) ; }
docstring: end func validate
docstring_tokens: end func validate