You are here

function JSimpleXMLElement::map in Ubercart 5

File

uc_store/includes/simplexml.php, line 614

Class

JSimpleXMLElement
SimpleXML Element

Code

function map($callback, $args = array()) {
  $callback($this, $args);

  // Map to all children
  if ($n = count($this->_children)) {
    for ($i = 0; $i < $n; $i++) {
      $this->_children[$i]
        ->map($callback, $args);
    }
  }
}