dolibarr 21.0.0-beta
ws.lib.php File Reference

Set of functions for manipulating web services. More...

Go to the source code of this file.

Functions

 check_authentication ($authentication, &$error, &$errorcode, &$errorlabel)
 Check authentication array and set error, errorcode, errorlabel.
 

Detailed Description

Set of functions for manipulating web services.

Definition in file ws.lib.php.

Function Documentation

◆ check_authentication()

check_authentication ( $authentication,
& $error,
& $errorcode,
& $errorlabel )

Check authentication array and set error, errorcode, errorlabel.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array with authentication information ('login'=>,'password'=>,'entity'=>,'dolibarrkey'=>)
int$errorNumber of errors
string$errorcodeError string code
string$errorlabelError string label
Returns
User Return user object identified by login/pass/entity into authentication array

Definition at line 37 of file ws.lib.php.

References $conf, and checkLoginPassEntity().

Referenced by createActionComm(), createContact(), createInvoice(), createInvoiceFromOrder(), createOrder(), createPayment(), createProductOrService(), createProject(), createThirdParty(), createUserFromThirdparty(), deleteProductOrService(), deleteThirdParty(), getActionComm(), getCategory(), getContact(), getContactsForThirdParty(), getDocument(), getInvoice(), getInvoicesForThirdParty(), getListActionCommType(), getListOfGroups(), getListOfProductsOrServices(), getListOfThirdParties(), getOrder(), getOrdersForThirdParty(), getProductOrService(), getProductsForCategory(), getProject(), getSupplierInvoice(), getSupplierInvoicesForThirdParty(), getThirdParty(), getUser(), getVersions(), setUserPassword(), updateActionComm(), updateContact(), updateInvoice(), updateOrder(), updateProductOrService(), updateThirdParty(), and validOrder().