|
|
|
@ -2016,6 +2016,19 @@ class ContentModel extends XMLDatastream {
|
|
|
|
|
return $ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Find the form element with name $name. |
|
|
|
|
* |
|
|
|
|
* @param string $name |
|
|
|
|
* The name of the form element to find. |
|
|
|
|
* @return DOMElement |
|
|
|
|
* The form element $name, if found FALSE otherwise. |
|
|
|
|
*/ |
|
|
|
|
public function getForm($name) { |
|
|
|
|
$result = $this->xpath->query("//cm:form[@name='$name']"); |
|
|
|
|
return $result->length == 1 ? $result->item(0) : FALSE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
|
* @return array |
|
|
|
|