mesilov / bitrix24-php-sdk

A powerful PHP library for the Bitrix24 REST API
MIT License
409 stars 159 forks source link

Add a support a method batch in base class #2

Closed mesilov closed 5 years ago

mesilov commented 10 years ago

http://dev.1c-bitrix.ru/rest_help/general/batch.php

drumrock commented 8 years ago

This can be implemented as 3 methods and delayed execution:

//Start batch block $obApp->batchStart(); //API-calls to be packed into batch $obLead->getList(); $obLead->get(); ... //Batch end $obApp->batchEnd(); //Run batch $obApp->batchExecute();

Every method called for the same $obApp between $obApp->batchStart() and $obApp->batchEnd() has to be stored in some cache ($batch[] = methodName+paramsArray), but not executed immediately. And then all these stored methods have to be executed on $obApp->batchExecute();

Programming effort here can be minimized by changing Bitrix24::call() to support delayed API-calls execution.

All other methods can be left untouched.

maranqz commented 8 years ago

Will it be implemented in the near future?