Add function getElementByName

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 1f40024cf0
commit 42052a6802
  1. 14
      main/inc/lib/pear/HTML/QuickForm.php

@ -705,6 +705,20 @@ class HTML_QuickForm extends HTML_Common
}
}
/**
* @param string $name
* @return mixed
*/
public function getElementByName($name)
{
foreach ($this->_elements as &$element) {
$elementName = $element->getName();
if ($elementName == $name) {
return $element;
}
}
}
/**
* @param string $element
* @return bool

Loading…
Cancel
Save