- ⌂ Content Type Field
- Methods
ContentTypeField::is_dimension_field()
Return TRUE if this field is a dimension field. That is, a single forward reference to a content type that extends Dimension and gives dimensionality to its parent type.
Prototype
boolean is_dimension_field()
Return
Return TRUE if this field is a dimension field, otherwise FALSE.
Example
// note that a Web Page Language field is a dimension field
$repo = comand::repo();
$web_page_ct = $repo->get_content_type('SitesWebPage');
$field = $web_page_ct->get_field('Language');
if($field->is_dimension_field()) {
echo("Language is a dimension field.\n");
}
Related
is_data_type(), is_embedded_reference(), is_forward_reference(), is_back_reference(), ContentType::supports_dimensions()