2011-08-30 13:15:25 -04:00
|
|
|
<?php
|
2017-08-11 11:10:27 -04:00
|
|
|
|
|
|
|
|
/**
|
2017-08-14 15:53:48 -04:00
|
|
|
* XmlFormFieldpopupOption - XmlFormFieldPopupOption class
|
2012-10-09 12:58:15 -04:00
|
|
|
*
|
2017-08-11 11:10:27 -04:00
|
|
|
* @package workflow.engine.ProcessMaker
|
2017-08-11 18:01:58 -04:00
|
|
|
*/
|
2017-08-14 15:53:48 -04:00
|
|
|
class XmlFormFieldPopupOption extends XmlFormField
|
2011-08-30 13:15:25 -04:00
|
|
|
{
|
2017-08-11 18:01:58 -04:00
|
|
|
public $launch = '';
|
2012-10-09 12:58:15 -04:00
|
|
|
|
2017-08-11 11:10:27 -04:00
|
|
|
/**
|
|
|
|
|
* Get Events
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
2017-08-11 18:01:58 -04:00
|
|
|
public function getEvents()
|
2012-10-09 12:58:15 -04:00
|
|
|
{
|
2017-08-11 18:01:58 -04:00
|
|
|
$script = '{name:"' . $this->name . '",text:"' . addcslashes($this->label, '\\"') . '", launch:leimnud.closure({Function:function(target){' . $this->launch . '}, args:target})}';
|
2017-08-11 11:10:27 -04:00
|
|
|
return $script;
|
2012-10-09 12:58:15 -04:00
|
|
|
}
|
|
|
|
|
}
|