code: private function prepareArrayParameter($name)
      {
          if (isset($this->parameters[$name])) {
              $parameterArray = $this->parameters[$name];
              $count          = count($parameterArray);
              $str            = "['".$parameterArray[0]."'";
  
              for ($i = 1; $i < $count; ++$i) {
                  $str .= ", '".$parameterArray[$i]."'";
              }
  
              $str .= ']';
  
              return $str;
          }
      }
docs: Return a javascript array.
  
  @var string name
  The name of the parameter to look for
  
  @return string