This commit is contained in:
Julio Cesar Laura Avendaño
2019-08-20 10:36:00 -04:00
parent 6aab41abc2
commit 2e07f7da55
5 changed files with 12 additions and 12 deletions

View File

@@ -76,11 +76,11 @@ class DynaformHandler
} }
/** /**
* Function __cloneEmpty * Function cloneEmpty
* @access public * @access public
* @return void * @return void
*/ */
public function __cloneEmpty() public function cloneEmpty()
{ {
$xPath = new DOMXPath($this->dom); $xPath = new DOMXPath($this->dom);
$nodeList = $xPath->query('/dynaForm/*'); $nodeList = $xPath->query('/dynaForm/*');

View File

@@ -51,7 +51,7 @@ class Xml_Node
* @param eter string attributes * @param eter string attributes
* @return string * @return string
*/ */
public function Xml_Node ($name, $type, $value, $attributes = array()) public function __construct ($name, $type, $value, $attributes = array())
{ {
$this->name = $name; $this->name = $name;
$this->type = $type; $this->type = $type;
@@ -266,7 +266,7 @@ class Xml_Document extends Xml_Node
* @access public * @access public
* @return string * @return string
*/ */
public function Xml_Document () public function __construct ()
{ {
$this->currentNode = &$this; $this->currentNode = &$this;
} }

View File

@@ -4509,7 +4509,7 @@ class XmlFormFieldDate extends XmlFormFieldSimpleText
//$this->defaultValue = G::replaceDataField( $this->defaultValue, $owner->values); //$this->defaultValue = G::replaceDataField( $this->defaultValue, $owner->values);
$id = "form[$this->name]"; $id = "form[$this->name]";
return $this->__draw_widget($id, $value, $owner); return $this->draw_widget($id, $value, $owner);
} }
/** /**
@@ -4546,7 +4546,7 @@ class XmlFormFieldDate extends XmlFormFieldSimpleText
$html = '<input ' . $this->NSRequiredValue() . ' class="module_app_input___gray" ' . $this->NSGridType() . ' id="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" name="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" type ="text" size="' . $this->size . '" maxlength="' . $this->maxLength . '" value="' . $this->htmlentities($v, ENT_COMPAT, 'utf-8') . '" pm:required="' . $isRequired . '" style="display:none;' . htmlentities($this->style, ENT_COMPAT, 'utf-8') . '" />' . htmlentities($v, ENT_COMPAT, 'utf-8'); $html = '<input ' . $this->NSRequiredValue() . ' class="module_app_input___gray" ' . $this->NSGridType() . ' id="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" name="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" type ="text" size="' . $this->size . '" maxlength="' . $this->maxLength . '" value="' . $this->htmlentities($v, ENT_COMPAT, 'utf-8') . '" pm:required="' . $isRequired . '" style="display:none;' . htmlentities($this->style, ENT_COMPAT, 'utf-8') . '" />' . htmlentities($v, ENT_COMPAT, 'utf-8');
} else { } else {
$id = 'form[' . $owner->name . '][' . $r . '][' . $this->name . ']'; $id = 'form[' . $owner->name . '][' . $r . '][' . $this->name . ']';
$html = $this->__draw_widget($id, $v, $owner, true); $html = $this->draw_widget($id, $v, $owner, true);
} }
} else { } else {
$html = $v; $html = $v;
@@ -4565,7 +4565,7 @@ class XmlFormFieldDate extends XmlFormFieldSimpleText
* @param $owner * @param $owner
* @return <String> * @return <String>
*/ */
public function __draw_widget($pID, $value, $owner = '', $inGrid = false) public function draw_widget($pID, $value, $owner = '', $inGrid = false)
{ {
$startDate = G::replaceDataField($this->startDate, $owner->values); $startDate = G::replaceDataField($this->startDate, $owner->values);
$endDate = G::replaceDataField($this->endDate, $owner->values); $endDate = G::replaceDataField($this->endDate, $owner->values);
@@ -4957,7 +4957,7 @@ class XmlFormFieldDate5 extends XmlFormFieldSimpleText
} }
//$this->defaultValue = G::replaceDataField( $this->defaultValue, $owner->values); //$this->defaultValue = G::replaceDataField( $this->defaultValue, $owner->values);
$id = "form[$this->name]"; $id = "form[$this->name]";
return $this->__draw_widget($id, $value, $owner); return $this->draw_widget($id, $value, $owner);
} }
/** /**
@@ -4976,7 +4976,7 @@ class XmlFormFieldDate5 extends XmlFormFieldSimpleText
$v = ($v != '') ? G::replaceDataField($v, $owner->values) : $this->defaultValue; $v = ($v != '') ? G::replaceDataField($v, $owner->values) : $this->defaultValue;
if (!$onlyValue) { if (!$onlyValue) {
$id = 'form[' . $owner->name . '][' . $r . '][' . $this->name . ']'; $id = 'form[' . $owner->name . '][' . $r . '][' . $this->name . ']';
$html = $this->__draw_widget($id, $v, $owner); $html = $this->draw_widget($id, $v, $owner);
} else { } else {
$html = $v; $html = $v;
} }
@@ -4994,7 +4994,7 @@ class XmlFormFieldDate5 extends XmlFormFieldSimpleText
* @param $owner * @param $owner
* @return <String> * @return <String>
*/ */
public function __draw_widget($pID, $value, $owner = '') public function draw_widget($pID, $value, $owner = '')
{ {
/*for deprecated mask definitions...*/ /*for deprecated mask definitions...*/

View File

@@ -30,7 +30,7 @@ class DynaformEditorAjax extends DynaformEditor implements IDynaformEditorAjax
*/ */
public function _run($post) public function _run($post)
{ {
WebResource::WebResource($_SERVER['REQUEST_URI'], $post); WebResource::__construct($_SERVER['REQUEST_URI'], $post);
} }
/** /**

View File

@@ -47,7 +47,7 @@ switch ($request) {
$e[] = $o->getNode( $element ); $e[] = $o->getNode( $element );
} }
$o->__cloneEmpty(); $o->cloneEmpty();
foreach ($e as $e1) { foreach ($e as $e1) {
$o->setNode( $e1 ); $o->setNode( $e1 );