Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a support a method batch in base class #2

Closed
mesilov opened this issue Nov 10, 2013 · 2 comments
Closed

Add a support a method batch in base class #2

mesilov opened this issue Nov 10, 2013 · 2 comments
Assignees

Comments

@mesilov
Copy link
Owner

mesilov commented Nov 10, 2013

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

@ghost ghost assigned mesilov Nov 10, 2013
@drumrock
Copy link
Contributor

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
Copy link

maranqz commented Feb 6, 2016

Will it be implemented in the near future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants