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
Last revision Both sides next revision
en:start:developers [2016/07/07 16:35]
admin [У вас есть модуль, который создает файлы, которые вы хотите интегрировать в Бизнес-Процесс?]
en:start:developers [2016/07/07 16:37]
admin [Добавить тип поля для запроса значений от пользователя Add a FieldType for Request Values from User]
Line 135: Line 135:
  
 </​Code>​ </​Code>​
-==== Добавление опций для работы с Файлами,​ созданными Бизнес-Процессом ​====+==== Add new Options what to do with Files generated by Workflows ​====
  
-После версий ​600.0801 ​эта Задача будет интегрирована в каждую версию vTiger\\ +With 600.0801 ​in added this interface. It will be integrated in every tasks in the next versions
-В данный момент функция присутствует только в блоке "​Интеграция ​PDFMaker".+At this moment it is only integrated into the new PDFMaker ​Integration block.
  
-Добавьте файл с название **<​individual>​.inc.php** в папку ​**/​modules/​Workflow2/​extends/​fileactions/​**.+Add a file in **/​modules/​Workflow2/​extends/​fileactions/​** ​with the filename “**<​individual>​.inc.php**”
  
-Этот файл должен содержать класс (class), который извлекается из **\Workflow\FileAction**. +This file must contain a class which extends from **\Workflow\FileAction**. 
-Этот класс должен содержать следующую структуру:+This class must have the following structure:
  
 <​Code>​ <​Code>​
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>​