[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/tobscure/json-api/src/ -> Util.php (summary)

(no description)

File Size: 50 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Util:: (1 method):
  parseRelationshipPaths()


Class: Util  - X-Ref

parseRelationshipPaths(array $paths)   X-Ref
Parse relationship paths.

Given a flat array of relationship paths like:

['user', 'user.employer', 'user.employer.country', 'comments']

create a nested array of relationship paths one-level deep that can
be passed on to other serializers:

['user' => ['employer', 'employer.country'], 'comments' => []]

param: array $paths
return: array



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer