uawdijnntqw1x1x1
IP : 18.116.27.229
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
arhangelsk.axolotls.ru
/
a537b
/
setstateactivity.tar
/
/
setstateactivity.php000064400000005217147734503040010702 0ustar00<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); class CBPSetStateActivity extends CBPActivity { public function __construct($name) { parent::__construct($name); $this->arProperties = array("Title" => "", "TargetStateName" => ""); } public function Execute() { $stateActivity = $this; while ($stateActivity != null && !is_a($stateActivity, "CBPStateActivity")) $stateActivity = $stateActivity->parent; $stateActivity->SetNextStateName($this->TargetStateName); return CBPActivityExecutionStatus::Closed; } public static function ValidateProperties($arTestProperties = array(), CBPWorkflowTemplateUser $user = null) { $arErrors = array(); if (strlen($arTestProperties["TargetStateName"]) <= 0) { $arErrors[] = array("code" => "emptyState", "parameter" => "TargetStateName", "message" => "Bad target state."); } return array_merge($arErrors, parent::ValidateProperties($arTestProperties, $user)); } public static function GetPropertiesDialog($documentType, $activityName, $arWorkflowTemplate, $arWorkflowParameters, $arWorkflowVariables, $arCurrentValues = null, $formName = "") { $runtime = CBPRuntime::GetRuntime(); $arStates = CBPWorkflowTemplateLoader::GetStatesOfTemplate($arWorkflowTemplate); if (!is_array($arCurrentValues)) { $arCurrentActivity = &CBPWorkflowTemplateLoader::FindActivityByName($arWorkflowTemplate, $activityName); if (is_array($arCurrentActivity["Properties"]) && array_key_exists("TargetStateName", $arCurrentActivity["Properties"])) $arCurrentValues["target_state_name"] = $arCurrentActivity["Properties"]["TargetStateName"]; } return $runtime->ExecuteResourceFile( __FILE__, "properties_dialog.php", array( "arStates" => $arStates, "arCurrentValues" => $arCurrentValues, ) ); } public static function GetPropertiesDialogValues($documentType, $activityName, &$arWorkflowTemplate, &$arWorkflowParameters, &$arWorkflowVariables, $arCurrentValues, &$arErrors) { $arErrors = array(); $runtime = CBPRuntime::GetRuntime(); $state = ((strlen($arCurrentValues["target_state_name_1"]) > 0) ? $arCurrentValues["target_state_name_1"] : $arCurrentValues["target_state_name"]); $arProperties = array("TargetStateName" => $state); $arErrors = self::ValidateProperties($arProperties, new CBPWorkflowTemplateUser(CBPWorkflowTemplateUser::CurrentUser)); if (count($arErrors) > 0) return false; $arCurrentActivity = &CBPWorkflowTemplateLoader::FindActivityByName($arWorkflowTemplate, $activityName); $arCurrentActivity["Properties"] = $arProperties; return true; } } ?>lang/en/properties_dialog.php000064400000000061147734503040012317 0ustar00<? $MESS ['BPSFA_PD_STATE'] = "Change Status"; ?>lang/en/.description.php000064400000000217147734503040011210 0ustar00<? $MESS ['BPSSA_DESCR_DESCR'] = "Changes the state of a current document to the specified state"; $MESS ['BPSSA_DESCR_NAME'] = "Set State"; ?>lang/ru/properties_dialog.php000064400000000106147734503040012343 0ustar00<? $MESS ['BPSFA_PD_STATE'] = "Перевести в статус"; ?>lang/ru/.description.php000064400000000370147734503040011234 0ustar00<? $MESS ['BPSSA_DESCR_DESCR'] = "Действие \"Установить статус\" изменяет статус текущего документа на заданный."; $MESS ['BPSSA_DESCR_NAME'] = "Установить статус"; ?>lang/de/properties_dialog.php000064400000000073147734503040012310 0ustar00<? $MESS ['BPSFA_PD_STATE'] = "In den Status umwandeln"; ?>lang/de/.description.php000064400000000241147734503040011173 0ustar00<? $MESS ['BPSSA_DESCR_DESCR'] = "Ändert den Status des aktuellen Dokuments in den vorgegebenen Status um"; $MESS ['BPSSA_DESCR_NAME'] = "Status definieren"; ?>
/var/www/axolotl/data/www/arhangelsk.axolotls.ru/a537b/setstateactivity.tar