dolibarr 21.0.0-beta
server_project.php File Reference

File that is entry point to call Dolibarr WebServices. More...

Go to the source code of this file.

Functions

 createProject ($authentication, $project)
 Create project.
 
 getProject ($authentication, $id='', $ref='')
 Get a project.
 

Detailed Description

File that is entry point to call Dolibarr WebServices.

Definition in file server_project.php.

Function Documentation

◆ createProject()

createProject ( $authentication,
$project )

Create project.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
array{id:string,ref:string,label:string,thirdparty_id:int,public:int,status:int,date_start:string,date_end:string,budget:int,description:string,elements:array<array{id:int,user:int}>}$project Project info
Returns
array{id?:int,ref?:string,result:array{result_code:string,result_label:string}} Array result

Definition at line 264 of file server_project.php.

References $conf, check_authentication(), dol_stringtotime(), and dol_syslog().

◆ getProject()

getProject ( $authentication,
$id = '',
$ref = '' )

Get a project.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
string$idinternal id
string$refinternal reference
Returns
array{result:array{result_code:string,result_label:string}} Array result

Definition at line 360 of file server_project.php.

References $conf, $id, check_authentication(), dol_print_date(), and dol_syslog().