You are here

function QPACssEventHandler::getVal in QueryPath 7.3

Same name and namespace in other branches
  1. 6 qpa/qpa.classes.inc \QPACssEventHandler::getVal()
  2. 7.2 qpa/qpa.classes.inc \QPACssEventHandler::getVal()

Get the value of an item in a deeply nested array.

1 call to QPACssEventHandler::getVal()
QPACssEventHandler::directDescendant in qpa/qpa.classes.inc

File

qpa/qpa.classes.inc, line 42
qpa.classes

Class

QPACssEventHandler
qpa.classes

Code

function getVal($key) {
  $t = $this->arr;
  foreach ($key as $part) {
    $t = $t[$part];
  }
  return $t;
}