I
I
Ilya2018-11-09 18:09:43
1C-Bitrix
Ilya, 2018-11-09 18:09:43

Why duplicate php functions in Bitrix?

bxapi.ru/src/?module_id=main&name=Helper%3A%3AgetC...
Why are methods implemented in Bitrix that duplicate php functions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alexalexes, 2018-11-09
@New_Horizons

1) To maintain the method naming standard and always be in line with the OOP architecture, even if the function is trifling;
2) Increase code portability from one version of PHP to another (who knows what bit depth of the variable microtime() will return tomorrow and whether it will be a familiar float).
3) The microtime() function in the method is called with a parameter, and this is already a specific use of the function - let's write a separate method for it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question