Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:start:developers [2016/07/07 16:35]
admin [Добавление опций для работы с Файлами, созданными Бизнес-Процессом]
en:start:developers [2016/07/07 16:38]
admin [Использование настраиваемых полей инвентаризации use custom Inventory Fields]
Line 197: Line 197:
 </​Code>​ </​Code>​
  
-==== Добавить тип поля для запроса значений от пользователя ​Add a FieldType for Request Values from User ====+==== Add a FieldType for Request Values from User ====
  
-Вам необходимы поля, которые отсутствуют в стандартном наборе полей\\ +You would like to request a very special value from your users and you couldn'​t do this with the integrated field types
-Вы можете интегрировать свои собственные типы полей!+**You could integrate you own fieldtypes!**
  
-Добавьте файл с именем **<​individual>​.inc.php** в папку ​**/​modules/​Workflow2/​extends/​fieldtypes/​**+Add a file in **/​modules/​Workflow2/​extends/​fieldtypes/​** ​with the filename “**<​individual>​.inc.php**
- +
-Файл должен содержать класс (class ), который извлекается из **\Workflow\Fieldtype**+
-Класс должен содержать следующую структуру:​+
  
 +This file must contain a class which extends from **\Workflow\Fieldtype**.
 +This class must have the following structure:
 <​Code>​ <​Code>​
 <?php <?php
Line 214: Line 213:
 { {
     /**     /**
-     ​* ​Должен вернуть каждое текстовое поле, которому присвоен этот класс+     ​* ​Should return every fieldtype this class will provide
      *      *
-     * @param $moduleName - Название модуля Бизнес-Процессагде будет выводиться поле +     * @param $moduleName - The moduleName of the Workflowwhich include this field 
-     * @return array - Массив со следующей структурой+     * @return array - An Array with the following Structure
      ​* ​                 array(      ​* ​                 array(
      ​* ​                     array(      ​* ​                     array(
Line 225: Line 224:
      ​* ​                     ), ...      ​* ​                     ), ...
      ​* ​                 )      ​* ​                 )
-                    $config ​- массив полей конфигурациикоторые необходимо настроить из бэкэнда +                    $config ​is an array of configuration fieldsthe admin needs to configure in backend 
-     ​* ​                     ​Структура следующая:​+     ​* ​                     ​it must have the following structure
      ​* ​                     array(      ​* ​                     array(
      ​* ​                         '<​configKey>'​ => array(      ​* ​                         '<​configKey>'​ => array(
Line 284: Line 283:
 } }
    
-// Класс необходимо зарегистрировать+// The class neeeds to be registered
 \Workflow\Fieldtype::​register('​[IndividualNameA]',​ '​\Workflow\Plugins\Fieldtypes\[IndividualNameA]'​);​ \Workflow\Fieldtype::​register('​[IndividualNameA]',​ '​\Workflow\Plugins\Fieldtypes\[IndividualNameA]'​);​
 </​Code>​ </​Code>​
-==== Использование настраиваемых полей инвентаризации ​use custom Inventory Fields ==== +==== use custom Inventory Fields ====
- +
-Если вы используете настраиваемые поля в Задаче Inventory, такие как Счет, Коммерческое предложение,​ то значения этих полей будут очищены при выполнении любого другого Бизнес-Процесса и вы не сможете взаимодействовать с ними из Дизайнера Бизнес-Процессов,​ если версия вашего vTiger ниже 600.0825. \\+
  
-С этой версией вы сможете создавать файлы с именем ​“InventoryFields.inc.php” ​прямо в директории ​“extends”. \\ +If you implement custom fields in your Inventory Records, like Invoice, Quotes, the values will be deleted during any workflows and you couldn'​t interact with this values from Workflow Designer before version 600.0825. \\ 
-Эти файлы не будут переписаны во время обновления.+With this version, you could create a file named “InventoryFields.inc.php” ​directly into the “extends” ​directory \\ 
 +This file will not be overwritten during updates of the module.
  
-В этом файле вы можете настраивать создаваемые вами поля и сохранять их при выполнении Бизнес-Процессов. \\ +In this file you could configure the fields you create and want to keep during Workflows. \\ 
-Этот файл **ОБЯЗАТЕЛЬНО ДОЛЖЕН** иметь следующую структуру: ​\\ +This file MUST have the following structure.  ​\\ 
-По той причине,​ что этот файл будет включен в каждое выполнение Бизнес-Процесса во всех модулях ​Inventory, ​вы должны вносить изменения осторожно. \\ +Because this file will be included during every Workflow execution in the Inventory ​Modulesyou should proceed with caution \\ 
-Любая ошибка в этом файле сделает выполнение любого Бизнес-Процесса невозможным.+Every Error in this file could make it impossible to execute any workflows.
  
 <​Code>​ <​Code>​
Line 319: Line 317:
 <tr> <tr>
 <td style="​padding:​5px;​background-color:#​D8D8D8">​tableCol</​td>​ <td style="​padding:​5px;​background-color:#​D8D8D8">​tableCol</​td>​
-<td style="​padding:​5px;">​Это имя колонки в таблице ​vtiger_inventoryproductrel. ​Не используется для чтения из БДно подходит для использования как уникальное имя</td>+<td style="​padding:​5px;">​This is the name of the column in the vtiger_inventoryproductrel ​tableWon't be used to read from database ​but will be a good and unique name</td>
 </tr> </tr>
 <tr> <tr>
 <td style="​padding:​5px;​background-color:#​D8D8D8;">​FieldNameWithoutProductIndex</​td>​ <td style="​padding:​5px;​background-color:#​D8D8D8;">​FieldNameWithoutProductIndex</​td>​
-<td style="​padding:​5px;">​Это код значения в ProductsArray. ​Вы используете это значение в функции ​“getAssociatedProducts”</​td>​+<td style="​padding:​5px;">​This is the Key of the value in the ProductsArray. ​You use this value in the “getAssociatedProducts” ​function</td>
 </tr> </tr>
 <tr> <tr>
 <td style="​padding:​5px;​background-color:#​D8D8D8;">​Testvalue</​td>​ <td style="​padding:​5px;​background-color:#​D8D8D8;">​Testvalue</​td>​
-<td style="​padding:​5px;">​Является названием этого полякоторое будет показано в настройках Задачи</td>+<td style="​padding:​5px;">​The label of this fieldwhich will be shown on task configurations</td>
 </tr> </tr>
 </​table>​ </​table>​
 </​html>​ </​html>​