Zmiany pomiędzy wersją początkową i wersją 1 dla DeployerGuide/Others/eDokumentyApi/SetFileMetaText

Pokaż
Ignoruj:
Data i czas:
02/06/12 12:55:53 (12 years temu)
Autor:
TS (IP: 213.227.67.33)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • DeployerGuide/Others/eDokumentyApi/SetFileMetaText

    v1 v1  
     1= [wiki:DeployerGuide Przewodnik wdrożeniowca] > Ustawia meta text załącznika (używany przy wyszukiwaniu) = 
     2 
     3 
     4''' Definicja parametrów: ''' 
     5{{{ 
     6#!php 
     7<?php 
     8 
     9/** 
     10 * Ustawia meta text załącznika (używany przy wyszukiwaniu) 
     11 * 
     12 * @param int $fileid ID załącznika 
     13 * @param string $text 
     14 * 
     15 * @return bool true on success, false otherwise 
     16 * 
     17 * @since 1.0.1 
     18 * @throws Exception - SoapFault 
     19 */ 
     20bool function setFileMetaText($fileid, $text) 
     21 
     22?> 
     23}}} 
     24 
     25''' Przykłady wywołań: ''' 
     26{{{ 
     27#!php 
     28 
     29// Plik MyService.php umieszczony w apps/edokumenty. 
     30// MyService.php 
     31<?php 
     32 
     33define('EDOK_API_LOGIN', 'developer'); 
     34define('EDOK_API_PASSWORD', 'developer'); 
     35define('DEFAULT_ENTITY_SYMBOL', 'demo'); 
     36 
     37require_once('./classes/eDokumentyApi/EDokApiClient.inc'); 
     38 
     39$options = array( 
     40    'location' => 'http://{host}:{port}/eDokumentyApi.php', 
     41    "uri" => "eDokumentyAPI", 
     42    'encoding'=>'UTF-8' 
     43); 
     44         
     45$client = new EDokApiClient(NULL, $options); 
     46$client->setUser(EDOK_API_LOGIN); 
     47$client->setPass(md5(EDOK_API_PASSWORD)); 
     48$header = new SoapHeader('eDokumentyAPI', 'entity_symbol', DEFAULT_ENTITY_SYMBOL); 
     49$client->__setSoapHeaders($header); 
     50 
     51// Tworzy kontakt 
     52$contid = NULL; 
     53 
     54 
     55 
     56?> 
     57}}}