Extends
- Backbone.Model
Methods
initialize()
This function is executed whenever a new model is created.
parse(xml) → {JSON}
Overrides the default Backbone.Model.parse() function to parse the filterGroup
XML snippet
Parameters:
Name | Type | Description |
---|---|---|
xml |
Element | The XML Element that contains all the FilterGroup elements |
Returns:
The result of the parsed XML, in JSON. To be set directly on the model.
- Type
- JSON
parseTextNode(parentNode, nodeName, isMultiple) → {string|Array}
Gets the text content of the XML node matching the given node name
Parameters:
Name | Type | Description |
---|---|---|
parentNode |
Element | The parent node to select from |
nodeName |
string | The name of the XML node to parse |
isMultiple |
boolean | If true, parses the nodes into an array |
Returns:
- Returns a string or array of strings of the text content
- Type
- string | Array
updateDOM() → {XMLElement}
Updates the XML DOM with the new values from the model
Returns:
An updated filterGroup XML element from a portal document
- Type
- XMLElement