Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс TemplateProvider
+ Граф наследования:TemplateProvider:

Открытые члены

 __construct (array $options=[])
 
 isAvailable ()
 
 getItems (array $ids)
 
 fillDialog (Dialog $dialog)
 
 getChildren (Item $parentItem, Dialog $dialog)
 
 doSearch (SearchQuery $searchQuery, Dialog $dialog)
 
- Открытые члены унаследованные от BaseProvider
 getPreselectedItems (array $ids)
 
 getSelectedItems (array $ids)
 
 getOptions ()
 
 getOption (string $option, $defaultValue=null)
 
 handleBeforeItemSave (Item $item)
 

Защищенные члены

 addTemplatesTab (Dialog $dialog)
 
 openPreselectedItemTree (Dialog $dialog)
 
 openTemplateTree (Dialog $dialog, Tpl $template)
 
 getModuleItem (Dialog $dialog, string $moduleId)
 
 getDocumentItem (Dialog $dialog, array $complexDocumentType)
 
 fillModuleItem (Dialog $dialog, Item $moduleItem, int $currentUserId)
 
 fillDocumentItem (Dialog $dialog, Item $documentItem, int $currentUserId)
 
 getComplexDocumentTypes (string $moduleId='')
 
 getDefaultTemplateFilter ()
 
 canUserStartWorkflow (int $userId, array $complexDocumentType)
 
 isUserWorkflowTemplateAdmin (int $userId)
 
 getCurrentUserId ()
 
 createModuleId (string $moduleId)
 
 createDocumentId (string $moduleId, string $documentId)
 
 parseModuleItemId (string $id)
 
 parseDocumentItemId (string $id)
 
- Защищенные члены унаследованные от BaseProvider
 __construct ()
 

Защищенные данные

const ENTITY_ID = 'bizproc-template'
 
const TAB_ID = 'templates'
 
const ITEM_MODULE_ID_PREFIX = 'module:'
 
const ITEM_DOCUMENT_TYPE_PREFIX = 'document:'
 
array $complexDocumentTypesCache = null
 
- Защищенные данные унаследованные от BaseProvider
 $options = []
 

Подробное описание

См. определение в файле templateprovider.php строка 17

Конструктор(ы)

◆ __construct()

__construct ( array $options = [])

Переопределяется в AutomationTemplateProvider и ScriptTemplateProvider.

См. определение в файле templateprovider.php строка 26

Методы

◆ addTemplatesTab()

addTemplatesTab ( Dialog $dialog)
protected

Переопределяется в AutomationTemplateProvider и ScriptTemplateProvider.

См. определение в файле templateprovider.php строка 79

◆ canUserStartWorkflow()

canUserStartWorkflow ( int $userId,
array $complexDocumentType )
protected

Переопределяется в ScriptTemplateProvider.

См. определение в файле templateprovider.php строка 387

◆ createDocumentId()

createDocumentId ( string $moduleId,
string $documentId )
protected

См. определение в файле templateprovider.php строка 440

◆ createModuleId()

createModuleId ( string $moduleId)
protected

См. определение в файле templateprovider.php строка 435

◆ doSearch()

doSearch ( SearchQuery $searchQuery,
Dialog $dialog )

Переопределяет метод предка BaseProvider.

См. определение в файле templateprovider.php строка 341

◆ fillDialog()

fillDialog ( Dialog $dialog)

Переопределяет метод предка BaseProvider.

Переопределяется в ScriptTemplateProvider.

См. определение в файле templateprovider.php строка 56

◆ fillDocumentItem()

fillDocumentItem ( Dialog $dialog,
Item $documentItem,
int $currentUserId )
protected

См. определение в файле templateprovider.php строка 257

◆ fillModuleItem()

fillModuleItem ( Dialog $dialog,
Item $moduleItem,
int $currentUserId )
protected

См. определение в файле templateprovider.php строка 239

◆ getChildren()

getChildren ( Item $parentItem,
Dialog $dialog )

Переопределяет метод предка BaseProvider.

См. определение в файле templateprovider.php строка 217

◆ getComplexDocumentTypes()

getComplexDocumentTypes ( string $moduleId = '')
protected

См. определение в файле templateprovider.php строка 315

◆ getCurrentUserId()

getCurrentUserId ( )
protected

См. определение в файле templateprovider.php строка 430

◆ getDefaultTemplateFilter()

getDefaultTemplateFilter ( )
protected

Переопределяется в AutomationTemplateProvider и ScriptTemplateProvider.

См. определение в файле templateprovider.php строка 368

◆ getDocumentItem()

getDocumentItem ( Dialog $dialog,
array $complexDocumentType )
protected

См. определение в файле templateprovider.php строка 192

◆ getItems()

getItems ( array $ids)
Аргументы
array$ids
Возвращает
Item[]

Переопределяет метод предка BaseProvider.

См. определение в файле templateprovider.php строка 38

◆ getModuleItem()

getModuleItem ( Dialog $dialog,
string $moduleId )
protected

См. определение в файле templateprovider.php строка 174

◆ isAvailable()

isAvailable ( )

Переопределяет метод предка BaseProvider.

См. определение в файле templateprovider.php строка 33

◆ isUserWorkflowTemplateAdmin()

isUserWorkflowTemplateAdmin ( int $userId)
protected

См. определение в файле templateprovider.php строка 425

◆ openPreselectedItemTree()

openPreselectedItemTree ( Dialog $dialog)
protected

См. определение в файле templateprovider.php строка 112

◆ openTemplateTree()

openTemplateTree ( Dialog $dialog,
Tpl $template )
protected

Переопределяется в ScriptTemplateProvider.

См. определение в файле templateprovider.php строка 132

◆ parseDocumentItemId()

parseDocumentItemId ( string $id)
protected

См. определение в файле templateprovider.php строка 450

◆ parseModuleItemId()

parseModuleItemId ( string $id)
protected

См. определение в файле templateprovider.php строка 445

Данные класса

◆ $complexDocumentTypesCache

array $complexDocumentTypesCache = null
protected

См. определение в файле templateprovider.php строка 24

◆ ENTITY_ID

const ENTITY_ID = 'bizproc-template'
protected

См. определение в файле templateprovider.php строка 19

◆ ITEM_DOCUMENT_TYPE_PREFIX

const ITEM_DOCUMENT_TYPE_PREFIX = 'document:'
protected

См. определение в файле templateprovider.php строка 22

◆ ITEM_MODULE_ID_PREFIX

const ITEM_MODULE_ID_PREFIX = 'module:'
protected

См. определение в файле templateprovider.php строка 21

◆ TAB_ID

const TAB_ID = 'templates'
protected

См. определение в файле templateprovider.php строка 20