Helma logo
helma.org » Home > Stories > HopObject.getChildElement()

HopObject.getChildElement()

If defined, the getChildElement() method is called on an object contained in the request path in order to determine the URL path resolution from that object to its (potential) child objects.

Syntax
HopObject.getChildElement(String)

The string parameter passed to this method is the name of the next element in the URL path being resolved. The object being returned by this method is then used to continue resolving the URL path.

Example

function getChildElement(name) {
  if (name == 'transient') {
    return new HopObject();
  }
  else {
    return this.get(name);
  }
}


... comment


Page last modified on 2005-11-15 14:03 by czv