public function views_oai_pmh_xml_node::num in Views OAI-PMH 7.2
Same name and namespace in other branches
- 6.2 plugins/includes/views_oai_pmh_xml_node.inc \views_oai_pmh_xml_node::num()
Gets the number of child elements stored in this XML node.
Return value
int The number of child elements.
File
- plugins/
includes/ views_oai_pmh_xml_node.inc, line 258 - Definition of the views_oai_pmh_xml_node class.
Class
- views_oai_pmh_xml_node
- A class designed to represent an XML node, specially designed to help the Views OAI PMH module render OAI fields as XML elements.
Code
public function num() {
if (is_array($this->value)) {
return count($this->value);
}
return 0;
}