public function importArms($arms, $format = 'php', $override = false)
    {
        $data = array(
                'token'        => $this->apiToken,
                'content'      => 'arm',
                'action'       => 'import',
                'returnFormat' => 'json'
        );
        
        #---------------------------------------
        # Process arguments
        #---------------------------------------
        $legalFormats = array('csv', 'json', 'php', 'xml');
        $data['format']   = $this->processFormatArgument($format, $legalFormats);
        $data['data']     = $this->processImportDataArgument($arms, 'arms', $format);
        $data['override'] = $this->processOverrideArgument($override);
        
        $result = $this->connection->callWithArray($data);
        
        $this->processNonExportResult($result);
        
        return (integer) $result;
    }
public function importArms($arms, $format = 'php', $override = false)
    {
        $data = array(
                'token'        => $this->apiToken,
                'content'      => 'arm',
                'action'       => 'import',
                'returnFormat' => 'json'
        );
        
        #---------------------------------------
        # Process arguments
        #---------------------------------------
        $legalFormats = array('csv', 'json', 'php', 'xml');
        $data['format']   = $this->processFormatArgument($format, $legalFormats);
        $data['data']     = $this->processImportDataArgument($arms, 'arms', $format);
        $data['override'] = $this->processOverrideArgument($override);
        
        $result = $this->connection->callWithArray($data);
        
        $this->processNonExportResult($result);
        
        return (integer) $result;
    }
public function importArms ( $ arms , $ format = 'php' , $ override = false ) { $ data = array ( 'token' => $ this -> apiToken , 'content' => 'arm' , 'action' => 'import' , 'returnFormat' => 'json' ) ; #--------------------------------------- # Process arguments #--------------------------------------- $ legalFormats = array ( 'csv' , 'json' , 'php' , 'xml' ) ; $ data [ 'format' ] = $ this -> processFormatArgument ( $ format , $ legalFormats ) ; $ data [ 'data' ] = $ this -> processImportDataArgument ( $ arms , 'arms' , $ format ) ; $ data [ 'override' ] = $ this -> processOverrideArgument ( $ override ) ; $ result = $ this -> connection -> callWithArray ( $ data ) ; $ this -> processNonExportResult ( $ result ) ; return ( integer ) $ result ; }
Imports the specified arms into the project.

@param mixed $arms the arms to import. This will
be a PHP array of associative arrays if no format, or 'php' format was specified,
and a string otherwise. The field names (keys) used in both cases
are: arm_num, name
@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 arms imported.
Imports the specified arms into the project .