public function archive($fileB64, $fileName, $subject, $date2, $type, $author, $comment, $ref, $amount, $tagsLst)
    {
        $this->client = $this->setClientSoap($this->URL_WSDL_ARCHIVE);

        // Construction du tableau des paramètres
        $fileParam = array('content' => $fileB64,
                            'fileName' => $fileName,
                            'subject' => $subject,
                            'date1' => date(DATE_RFC2822),
                            'date2' => $date2,
                            'type' => $type,
                            'author' => $author,
                            'comment' => $comment,
                            'ref' => $ref,
                            'amount' => $amount,
                            'generic1' => 'gen1',
                            'generic2' => 'gen2',
                            'tag' => $tagsLst, );

        $params = array(
                'file' => $fileParam,
            );

        $result = $this->client->call('archive', $params, self::API_NAMESPACE, self::API_NAMESPACE, $this->createHeaders());

        if ($this->client->fault) {
            $this->errors[] = $this->client->faultstring;

            return false;
        } else {
            $err = $this->client->getError();
            if ($err) {
                $this->errors = $err;

                return false;
            } else {
                return $result;
            }
        }
    }
public function archive($fileB64, $fileName, $subject, $date2, $type, $author, $comment, $ref, $amount, $tagsLst)
    {
        $this->client = $this->setClientSoap($this->URL_WSDL_ARCHIVE);

        // Construction du tableau des paramètres
        $fileParam = array('content' => $fileB64,
                            'fileName' => $fileName,
                            'subject' => $subject,
                            'date1' => date(DATE_RFC2822),
                            'date2' => $date2,
                            'type' => $type,
                            'author' => $author,
                            'comment' => $comment,
                            'ref' => $ref,
                            'amount' => $amount,
                            'generic1' => 'gen1',
                            'generic2' => 'gen2',
                            'tag' => $tagsLst, );

        $params = array(
                'file' => $fileParam,
            );

        $result = $this->client->call('archive', $params, self::API_NAMESPACE, self::API_NAMESPACE, $this->createHeaders());

        if ($this->client->fault) {
            $this->errors[] = $this->client->faultstring;

            return false;
        } else {
            $err = $this->client->getError();
            if ($err) {
                $this->errors = $err;

                return false;
            } else {
                return $result;
            }
        }
    }
public function archive ( $ fileB64 , $ fileName , $ subject , $ date2 , $ type , $ author , $ comment , $ ref , $ amount , $ tagsLst ) { $ this -> client = $ this -> setClientSoap ( $ this -> URL_WSDL_ARCHIVE ) ; // Construction du tableau des paramètres $ fileParam = array ( 'content' => $ fileB64 , 'fileName' => $ fileName , 'subject' => $ subject , 'date1' => date ( DATE_RFC2822 ) , 'date2' => $ date2 , 'type' => $ type , 'author' => $ author , 'comment' => $ comment , 'ref' => $ ref , 'amount' => $ amount , 'generic1' => 'gen1' , 'generic2' => 'gen2' , 'tag' => $ tagsLst , ) ; $ params = array ( 'file' => $ fileParam , ) ; $ result = $ this -> client -> call ( 'archive' , $ params , self :: API_NAMESPACE , self :: API_NAMESPACE , $ this -> createHeaders ( ) ) ; if ( $ this -> client -> fault ) { $ this -> errors [ ] = $ this -> client -> faultstring ; return false ; } else { $ err = $ this -> client -> getError ( ) ; if ( $ err ) { $ this -> errors = $ err ; return false ; } else { return $ result ; } } }
Fonction permettant d'archiver un ensemble de documents.

@param $fileB64
@param $fileName
@param $subject
@param $date2
@param $type
@param $author
@param $comment
@param $ref
@param $amount
@param $tagsLst
@return bool
Fonction permettant d archiver un ensemble de documents .