original_string: public function importEvents($events, $format = 'php', $override = false)
      {
          $data = array(
                  'token'        => $this->apiToken,
                  'content'      => 'event',
                  'action'       => 'import',
                  'returnFormat' => 'json'
          );
          
          #---------------------------------------
          # Process arguments
          #---------------------------------------
          $data['data'] = $this->processImportDataArgument($events, 'arms', $format);
          $legalFormats = array('csv', 'json', 'php', 'xml');
          $data['format'] = $this->processFormatArgument($format, $legalFormats);
          $data['override'] = $this->processOverrideArgument($override);
          
          $result = $this->connection->callWithArray($data);
          
          $this->processNonExportResult($result);
          
          return (integer) $result;
      }
code: public function importEvents($events, $format = 'php', $override = false)
      {
          $data = array(
                  'token'        => $this->apiToken,
                  'content'      => 'event',
                  'action'       => 'import',
                  'returnFormat' => 'json'
          );
          
          #---------------------------------------
          # Process arguments
          #---------------------------------------
          $data['data'] = $this->processImportDataArgument($events, 'arms', $format);
          $legalFormats = array('csv', 'json', 'php', 'xml');
          $data['format'] = $this->processFormatArgument($format, $legalFormats);
          $data['override'] = $this->processOverrideArgument($override);
          
          $result = $this->connection->callWithArray($data);
          
          $this->processNonExportResult($result);
          
          return (integer) $result;
      }
code_tokens: public function importEvents ( $ events , $ format = 'php' , $ override = false ) { $ data = array ( 'token' => $ this -> apiToken , 'content' => 'event' , 'action' => 'import' , 'returnFormat' => 'json' ) ; #--------------------------------------- # Process arguments #--------------------------------------- $ data [ 'data' ] = $ this -> processImportDataArgument ( $ events , 'arms' , $ format ) ; $ legalFormats = array ( 'csv' , 'json' , 'php' , 'xml' ) ; $ data [ 'format' ] = $ this -> processFormatArgument ( $ format , $ legalFormats ) ; $ data [ 'override' ] = $ this -> processOverrideArgument ( $ override ) ; $ result = $ this -> connection -> callWithArray ( $ data ) ; $ this -> processNonExportResult ( $ result ) ; return ( integer ) $ result ; }
docstring: Imports the specified events into the project.
  
  @param mixed $events the events to import. This will
  be a PHP array of associative arrays if no format, or 'php' format is specified,
  and a string otherwise. The field names (keys) used in both cases
  are: event_name, arm_num
  @param string $format the format for the export.
  <ul>
  <li> 'php' - [default] array of maps of values</li>
  <li> 'csv' - string of CSV (comma-separated values)</li>
  <li> 'json' - string of JSON encoded values</li>
  <li> 'xml' - string of XML encoded data</li>
  </ul>
  @param boolean $override
  <ul>
  <li> false - [default] don't delete existing arms; only add new
  arms or renames existing arms.
  </li>
  <li> true - delete all existing arms before importing.</li>
  </ul>
  
  @throws PhpCapException if an error occurs.
  
  @return integer the number of events imported.
docstring_tokens: Imports the specified events into the project .