You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

type_info()

Usage

type_info(type[, view])

Description

If called with a view, all properties of that view are returned as a list. The items of the list are in the same format as property_info() returns. This is identical to the result one would get from /structr/rest/_schema/<type>/<view>.

If called without a view, the complete type information is returned as an object. This is identical to the result one would get from /structr/rest/_schema/<type>.

Search results for "type_info()"

type_info()

If called with a view, all properties of that view are returned as a list. The items of the list are in the same format as property_info() returns. This is identical to the result one would get from /structr/rest/_schema/<type>/<view>.
If called without a view, the complete type information is returned as an object. This is identical to the result one would get from /structr/rest/_schema/<type>.

type_info(type[, view])