Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:start:custom_functions [2016/07/07 17:31] admin [Пользовательские функции] |
en:start:custom_functions [2016/07/07 17:35] (current) admin [Additional functions] |
||
---|---|---|---|
Line 19: | Line 19: | ||
* md5, rand, implode, substr, explode, microtime, date, time, sha1, hash, intval, floatval, floor, ceil, foreach | * md5, rand, implode, substr, explode, microtime, date, time, sha1, hash, intval, floatval, floor, ceil, foreach | ||
* all functions, started with “str” (strpos, str_pad, str_replace, …) | * all functions, started with “str” (strpos, str_pad, str_replace, …) | ||
- | ==== Дополнительные функции ==== | + | ==== Additional functions ==== |
- | Существуют несколько специальных функций, которые вы можете использовать, чтобы заставить vTiger сгенерировать специальные связанные задачи. \\ | + | There are existing some special functions you could use to do vtiger related special tasks. \\ |
- | Так же вы можете создать свои собственные функции. \\ | + | Also you could create your own functions [[en:start:developers|Read this]] and [[https://support.stefanwarnat.de/custom-functions/|also read this]] |
- | Документация доступна здесь: https://support.stefanwarnat.de/custom-functions/ | + | |
- | === Примеры пользовательских функций === | + | === custom function Examples === |
- | Эти примеры написаны только для демонстрации функций, если вы можете - напишите лучше. | + | This example is only written to demonstrate the functions and could be done better. |
<Code> | <Code> | ||
$var1 = "864"."0"; | $var1 = "864"."0"; | ||
Line 43: | Line 42: | ||
</Code> | </Code> | ||
- | Эта функция может быть использована, чтобы задержать выполнение задания на день или несколько дней в поле заказа на покупку в счете. | + | These function could be used inside the delay task to wait one day, or the amount of days in the Purchase Order Field of an invoice. |
- | **Здесь вы можете видеть единственный недостаток данного решения:** | + | **Here you could see one limitation of my implementation:** |
- | Если вы захотите использовать математические операции, то должны будете воспользоваться круглыми скобками, чтобы получить корректный результат, поскольку система игнорирует основные математические правила. | + | If you want use mathematical operations, you have to use parentheses to become the correct result, because the system ignore basic mathematical rules. |
- | === Другие примеры === | + | === Other examples === |
- | Подождать до того же числа следующего месяца | + | |
+ | Wait until same day next month | ||
<Code> | <Code> | ||
Line 56: | Line 56: | ||
</Code> | </Code> | ||
- | Подождать 5 дней | + | Wait 5 days |
<Code> | <Code> |