Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс Template

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

 __construct (array $documentType, $documentStatus=null)
 
 deleteRobots (array $robots, int $userId)
 
 getDocumentStatus ()
 
 setDocumentStatus ($status)
 
 setName (string $name)
 
 getExecuteType ($autoExecuteType)
 
 setExecuteType ($autoExecuteType)
 
 getId ()
 
 getParameters ()
 
 getRobotSettingsDialog (array $robot, $request=null)
 
 saveRobotSettings (array $robot, array $request)
 
 save (array $robots, $userId, array $additional=[])
 
 setRobots (array $robots)
 
 toArray ()
 
 getRobots ()
 
 getRobotByName (string $name)
 
 getRobotsByNames (array $names)
 
 getActivities ()
 
 getModified ()
 
 isExternalModified ()
 
 getDocumentType ()
 
 getProperty ($object, $field)
 

Открытые статические члены

static createByTpl (Tpl $tpl)
 
static getAvailableRobots (array $documentType)
 

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

 addBizprocTemplate ($userId)
 
 makeTemplateName ()
 
 updateBizprocTemplate ($id, $userId)
 
 convertTemplate ()
 
 unConvertTemplate ()
 
 isRobot (array $activity)
 

Защищенные статические члены

static getAvailableRobotClasses (array $documentType)
 

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

 $template
 
 $autoExecuteType = \CBPDocumentEventType::Automation
 
 $robots
 
 $isExternalModified
 
 $isConverted = false
 

Статические защищенные данные

static $parallelActivityType = 'ParallelActivity'
 
static $sequenceActivityType = 'SequenceActivity'
 
static $delayActivityType = 'DelayActivity'
 
static $robotDelayActivityType = 'RobotDelayActivity'
 
static $conditionActivityType = 'IfElseActivity'
 
static $availableActivities = []
 
static $availableActivityClasses = []
 

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

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

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

◆ __construct()

__construct ( array  $documentType,
  $documentStatus = null 
)

Template constructor.

Аргументы
array$documentType
null$documentStatus
Исключения
ArgumentException

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

Методы

◆ addBizprocTemplate()

addBizprocTemplate (   $userId)
protected

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

◆ convertTemplate()

convertTemplate ( )
protected

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

◆ createByTpl()

static createByTpl ( Tpl  $tpl)
static

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

◆ deleteRobots()

deleteRobots ( array  $robots,
int  $userId 
)

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

◆ getActivities()

getActivities ( )
Возвращает
array Template activities.

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

◆ getAvailableRobotClasses()

static getAvailableRobotClasses ( array  $documentType)
staticprotected

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

◆ getAvailableRobots()

static getAvailableRobots ( array  $documentType)
static

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

◆ getDocumentStatus()

getDocumentStatus ( )

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

◆ getDocumentType()

getDocumentType ( )

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

◆ getExecuteType()

getExecuteType (   $autoExecuteType)

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

◆ getId()

getId ( )

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

◆ getModified()

getModified ( )

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

◆ getParameters()

getParameters ( )

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

◆ getProperty()

getProperty (   $object,
  $field 
)

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

◆ getRobotByName()

getRobotByName ( string  $name)

Returns Robot by it`s id.

Аргументы
string$nameRobot identificator.
Возвращает
Robot|null Robot instance.

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

◆ getRobots()

getRobots ( )
Возвращает
Robot[] Robot activities.

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

◆ getRobotsByNames()

getRobotsByNames ( array  $names)

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

◆ getRobotSettingsDialog()

getRobotSettingsDialog ( array  $robot,
  $request = null 
)

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

◆ isExternalModified()

isExternalModified ( )

Checks is template was modified by external editor.

Возвращает
bool

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

◆ isRobot()

isRobot ( array  $activity)
protected

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

◆ makeTemplateName()

makeTemplateName ( )
protected

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

◆ save()

save ( array  $robots,
  $userId,
array  $additional = [] 
)

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

◆ saveRobotSettings()

saveRobotSettings ( array  $robot,
array  $request 
)

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

◆ setDocumentStatus()

setDocumentStatus (   $status)

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

◆ setExecuteType()

setExecuteType (   $autoExecuteType)

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

◆ setName()

setName ( string  $name)

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

◆ setRobots()

setRobots ( array  $robots)

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

◆ toArray()

toArray ( )

Convert instance data to array.

Возвращает
array

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

◆ unConvertTemplate()

unConvertTemplate ( )
protected

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

◆ updateBizprocTemplate()

updateBizprocTemplate (   $id,
  $userId 
)
protected

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

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

◆ $autoExecuteType

$autoExecuteType = \CBPDocumentEventType::Automation
protected

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

◆ $availableActivities

$availableActivities = []
staticprotected

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

◆ $availableActivityClasses

$availableActivityClasses = []
staticprotected

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

◆ $conditionActivityType

$conditionActivityType = 'IfElseActivity'
staticprotected

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

◆ $delayActivityType

string $delayActivityType = 'DelayActivity'
staticprotected

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

◆ $isConverted

$isConverted = false
protected

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

◆ $isExternalModified

$isExternalModified
protected

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

◆ $parallelActivityType

$parallelActivityType = 'ParallelActivity'
staticprotected

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

◆ $robotDelayActivityType

$robotDelayActivityType = 'RobotDelayActivity'
staticprotected

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

◆ $robots

$robots
protected

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

◆ $sequenceActivityType

$sequenceActivityType = 'SequenceActivity'
staticprotected

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

◆ $template

$template
protected

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