public function beforeGetTaskform($transferData) { $mmjtbcyru = "viewer"; global $current_user; ${"GLOBALS"}["ihsmqj"] = "adb"; $gaqowr = "data"; ${${"GLOBALS"}["ihsmqj"]} = \PearDatabase::getInstance(); ${"GLOBALS"}["wxhoxoygcnc"] = "data"; $fyndnfqo = "transferData"; ${"GLOBALS"}["oxvyxfqe"] = "availableSources"; $eufycixl = "script"; list(${$gaqowr}, ${$mmjtbcyru}) = ${$fyndnfqo}; if (empty(${${"GLOBALS"}["ouyntnw"]}[$this->field]["selection"]) && !empty($this->parameter["default"])) { $ucxrqokl = "data"; ${$ucxrqokl}[$this->field]["selection"] = $this->parameter["default"]; } ${"GLOBALS"}["chohcwdkrrp"] = "source"; $frqsqtsgi = "availableSources"; ${${"GLOBALS"}["eeadlfdjaj"]} = \Workflow\RecordSource::getAvailableSources($this->parameter["module"]); var_dump(${${"GLOBALS"}["eeadlfdjaj"]}); exit; foreach (${$frqsqtsgi} as ${${"GLOBALS"}["chohcwdkrrp"]}) { \Workflow\RecordSource::getItem(${${"GLOBALS"}["yrnmhkuyl"]}["id"]); } $viewer->assign("field", $this->field); $viewer->assign("sources", ${${"GLOBALS"}["oxvyxfqe"]}); $viewer->assign("selected_source", ${${"GLOBALS"}["wxhoxoygcnc"]}[$this->field]["selection"]); $viewer->assign("recordsources", $viewer->fetch("modules/Settings/Workflow2/helpers/RecordSource.tpl")); ${$eufycixl} = ""; $this->addInlineJS(${${"GLOBALS"}["ubkvqurnf"]}); return ${${"GLOBALS"}["yoshcnjjls"]}; }
/** * Created by JetBrains PhpStorm. * User: Stefan Warnat <*****@*****.**> * Date: 20.09.14 23:15 * You must not use this file without permission. */ namespace Workflow\Plugins\RecordSource; class Condition extends \Workflow\RecordSource { public function getSources($moduleName) { $return = array('id' => 'condition', 'title' => 'get Records by Condition', 'options' => array('condition' => array('type' => 'condition', 'label' => 'Define condition'))); return $return; } /** * @param $key * @param $value * @param $context \Workflow\VTEntity * @return array|void */ public function doAction($configuration, $moduleName, \Workflow\VTEntity $context) { } public function beforeGetTaskform($data) { } } \Workflow\RecordSource::register('condition', '\\Workflow\\Plugins\\RecordSource\\Condition');