/** * Gets a property value by navagating a dot separated path * that dereferences elements within the dataspace. * If an element cannot be dereferenced or is not set, the * value NULL is returned. * @param string name of property * @return mixed value of property or NULL if not found * @access public */ function getPath($path) { if (($pos = strpos($path, '.')) === FALSE) { return $this->get($path); } else { $value = $this->get(substr($path, 0, $pos)); $dataspace =& DataSpace::makeDataSpace($value); if (is_null($dataspace)) { return NULL; } return $dataspace->getPath(substr($path, $pos + 1)); } }