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:05]
admin [Добавление функций в пользовательские выражения]
en:start:developers [2016/07/07 16:37]
admin [Добавить тип поля для запроса значений от пользователя Add a FieldType for Request Values from User]
Line 46: Line 46:
 } }
 </​Code>​ </​Code>​
-==== У вас есть модулькоторый создает файлы, которые вы хотите интегрировать в Бизнес-Процесс? ====+==== You have a modulewhich create files you want to integrate into Workflows? ====
  
 +**PDFMaker and SQLReports are implemented in this way!**
 <WRAP center right info 30%> <WRAP center right info 30%>
-Доступно только в версии ​VtigerCRM 6.x+Only VtigerCRM 6.x
 </​WRAP>​ </​WRAP>​
  
-PDFMaker и SQL-отчеты реализуются следующим образом:​+If you create a similar module you could create a interfacefile to attach this files to Mails, Store as Documents or simple use the file in every task, which could handle files in any way.
  
-Если вы создадите похожий модуль,​ то сможете создать другой interfacefile,​ который сможет прикреплять файлы к электронным письмам,​ хранить их как документы или просто использовать в любой Задаче,​ которая может так или иначе обрабатывать файлы.+Create a files in **modules/​Workflow2/​extends/​interfaceFiles/​** with the filename **<​individual>​.inc.php**.
  
-Файлы создаются в папке **modules/​Workflow2/​extends/​interfaceFiles/​** с названиями **<​individual>​.inc.php**. +This file must include a Class, ​which extends from \Workflow\InterfaceFiles. \\ 
- +You must implement the following structure to be recognized by Workflow Designer:
-Этот файл должен включать в себя класс (Class)который находится по такому пути ​\Workflow\InterfaceFiles. \\ +
-Для того, чтобы Дизайнер Бизнес-Процессов распознал ваш файл, он должен иметь такую структуру:+
  
 <​Code>​ <​Code>​
Line 136: 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 198: 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 215: 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 226: 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 285: 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>​