Differences

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

Link to this comparison view

Both sides previous 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 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>​