public static function getValueByPath($dataTree, $path)
	{
		$pathParts = explode(".", $path);

		foreach ($pathParts as $name)
		{
			if (!isset($dataTree->{$name}))
			{
				return null;
			}

			$dataTree = $dataTree->{$name};
		}

		return $dataTree;
	}
public static function getValueByPath($dataTree, $path)
	{
		$pathParts = explode(".", $path);

		foreach ($pathParts as $name)
		{
			if (!isset($dataTree->{$name}))
			{
				return null;
			}

			$dataTree = $dataTree->{$name};
		}

		return $dataTree;
	}
public static function getValueByPath ( $ dataTree , $ path ) { $ pathParts = explode ( "." , $ path ) ; foreach ( $ pathParts as $ name ) { if ( ! isset ( $ dataTree -> { $ name } ) ) { return null ; } $ dataTree = $ dataTree -> { $ name } ; } return $ dataTree ; }
Get the value of the property in the data tree specified by the dotted path.

@param \StdClass $dataTree A tree of StdClass objects
@param string $path The dotted path to the property which should be returned
@return null|mixed The value of the property or null if not found
Get the value of the property in the data tree specified by the dotted path .