Files
luos/workflow/engine/classes/XmlFormFieldToolBar.php
Marco Antonio Nina Mena 0d533e19d9 HOR-4527
2018-05-08 10:16:52 -04:00

49 lines
1.3 KiB
PHP

<?php
/**
* ToolBar - ToolBar
* XmlFormFieldToolBar - XmlFormFieldToolBar class
*
* @package workflow.engine.ProcessMaker
*/
class XmlFormFieldToolBar extends XmlFormField
{
public $xmlfile = '';
public $type = 'toolbar';
public $toolBar;
public $home = '';
public $withoutLabel = true;
/**
* Constructor of the class XmlFormFieldToolBar
*
* @param string $xmlNode
* @param string $lang
* @param string $home
* @param string $owner
* @return void
*/
public function XmlFormFieldToolBar($xmlNode, $lang = 'en', $home = '', $owner = ' ')
{
parent::__construct($xmlNode, $lang, $home, $owner);
$this->home = $home;
}
/**
* Prints the ToolBar
*
* @param string $value
* @return string
*/
public function render($value = null, $paramDummy2 = NULL)
{
$this->toolBar = new ToolBar($this->xmlfile, $this->home);
$template = PATH_CORE . 'templates/' . $this->type . '.html';
$out = $this->toolBar->render($template, $scriptCode);
$oHeadPublisher = headPublisher::getSingleton();
$oHeadPublisher->addScriptFile($this->toolBar->scriptURL);
$oHeadPublisher->addScriptCode($scriptCode);
return $out;
}
}