Files
luos/thirdparty/html2ps_pdf/box.form.php
Paula Quispe 9eb7d6cac2 HOR-2689
2017-08-03 17:00:30 -04:00

40 lines
839 B
PHP

<?php
class FormBox extends BlockBox {
/**
* @var String form name; it will be used as a prefix for field names when submitting forms
* @access private
*/
var $_name;
function show(&$driver) {
global $g_config;
if ($g_config['renderforms']) {
$driver->new_form($this->_name);
};
return parent::show($driver);
}
function &create(&$root, &$pipeline) {
if ($root->has_attribute('name')) {
$name = $root->get_attribute('name');
} elseif ($root->has_attribute('id')) {
$name = $root->get_attribute('id');
} else {
$name = "";
};
$box = new FormBox($name);
$box->readCSS($pipeline->getCurrentCSSState());
$box->create_content($root, $pipeline);
return $box;
}
function FormBox($name) {
$this->BlockBox();
$this->_name = $name;
}
}
?>