/** * Get the data for an element in the chained validation * @param $element * @return null */ public function getDataFor($element) { $data = $this->data->getDataCopy(); if (!is_array($data)) { return null; } if ($element instanceof Element) { $name = $element->getName(true, true); } else { $name = $element; } $navigator = new Navigator(); return $navigator->arrayGet($data, $name); }
/** * Find a value for an element in the local dataset * @param string $name * @return mixed */ public function findLocalValue($name) { return $this->dataLocal->findValue($name); }