| @@ 101-116 (lines=16) @@ | ||
| 98 | * @param $compiHash |
|
| 99 | * @return string |
|
| 100 | */ |
|
| 101 | function getDoc($compiHash) |
|
| 102 | { |
|
| 103 | try |
|
| 104 | { |
|
| 105 | if (!is_object($this->soapcli)){ |
|
| 106 | return("Error in constructor compilatio() " . $this->soapcli); |
|
| 107 | } |
|
| 108 | $param = array($this->key, $compiHash); |
|
| 109 | $idDocument = $this->soapcli->__call('getDocument', $param); |
|
| 110 | return $idDocument; |
|
| 111 | } |
|
| 112 | catch (SoapFault $fault) |
|
| 113 | { |
|
| 114 | return("Erreur getDoc()" . $fault->faultcode . " " .$fault->faultstring); |
|
| 115 | } |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * method for recover an url document's report |
|
| @@ 123-138 (lines=16) @@ | ||
| 120 | * @param $compiHash |
|
| 121 | * @return string |
|
| 122 | */ |
|
| 123 | function getReportUrl($compiHash) |
|
| 124 | { |
|
| 125 | try |
|
| 126 | { |
|
| 127 | if (!is_object($this->soapcli)){ |
|
| 128 | return("Error in constructor compilatio() " . $this->soapcli); |
|
| 129 | } |
|
| 130 | $param = array($this->key,$compiHash); |
|
| 131 | $idDocument = $this->soapcli->__call('getDocumentReportUrl', $param); |
|
| 132 | return $idDocument; |
|
| 133 | } |
|
| 134 | catch (SoapFault $fault) |
|
| 135 | { |
|
| 136 | return("Erreur getReportUrl()" . $fault->faultcode ." " .$fault->faultstring); |
|
| 137 | } |
|
| 138 | } |
|
| 139 | ||
| 140 | /** |
|
| 141 | * Method for deleting a Compialtio's account document |
|
| @@ 145-159 (lines=15) @@ | ||
| 142 | * @param $compiHash |
|
| 143 | * @return string |
|
| 144 | */ |
|
| 145 | function deldoc($compiHash) |
|
| 146 | { |
|
| 147 | try |
|
| 148 | { |
|
| 149 | if (!is_object($this->soapcli)){ |
|
| 150 | return("Error in constructor compilatio() " . $this->soapcli); |
|
| 151 | } |
|
| 152 | $param = array($this->key,$compiHash); |
|
| 153 | $this->soapcli->__call('deleteDocument', $param); |
|
| 154 | } |
|
| 155 | catch (SoapFault $fault) |
|
| 156 | { |
|
| 157 | return("Erreur deldoc()" . $fault->faultcode . " " .$fault->faultstring); |
|
| 158 | } |
|
| 159 | } |
|
| 160 | ||
| 161 | /** |
|
| 162 | * Method for start the analysis for a document |
|
| @@ 166-180 (lines=15) @@ | ||
| 163 | * @param $compiHash |
|
| 164 | * @return string |
|
| 165 | */ |
|
| 166 | function startAnalyse($compiHash) |
|
| 167 | { |
|
| 168 | try |
|
| 169 | { |
|
| 170 | if (!is_object($this->soapcli)){ |
|
| 171 | return("Error in constructor compilatio() " . $this->soapcli); |
|
| 172 | } |
|
| 173 | $param = array($this->key,$compiHash); |
|
| 174 | $this->soapcli->__call('startDocumentAnalyse', $param); |
|
| 175 | } |
|
| 176 | catch (SoapFault $fault) |
|
| 177 | { |
|
| 178 | return("Erreur startAnalyse()" . $fault->faultcode ." " .$fault->faultstring); |
|
| 179 | } |
|
| 180 | } |
|
| 181 | ||
| 182 | /** |
|
| 183 | * Method for recover the account's quota |
|
| @@ 186-201 (lines=16) @@ | ||
| 183 | * Method for recover the account's quota |
|
| 184 | * @return string |
|
| 185 | */ |
|
| 186 | function getQuotas() |
|
| 187 | { |
|
| 188 | try |
|
| 189 | { |
|
| 190 | if (!is_object($this->soapcli)){ |
|
| 191 | return("Error in constructor compilatio() " . $this->soapcli); |
|
| 192 | } |
|
| 193 | $param=array($this->key); |
|
| 194 | $resultat=$this->soapcli->__call('getAccountQuotas', $param); |
|
| 195 | return $resultat; |
|
| 196 | } |
|
| 197 | catch (SoapFault $fault) |
|
| 198 | { |
|
| 199 | return("Erreur getQuotas()" . $fault->faultcode ." " .$fault->faultstring); |
|
| 200 | } |
|
| 201 | } |
|
| 202 | ||
| 203 | } |
|
| 204 | ||