- ⌂ Content Type Field
- Methods
ContentTypeField::is_forward_reference()
Return TRUE if this field is a forward reference field.
Prototype
boolean is_forward_reference()
Return
Return TRUE if this field is a forward reference field, otherwise FALSE.
Example
// list the Web Page Parent field's choices
$repo = comand::repo();
$web_page_ct = $repo->get_content_type('SitesWebPage');
$field = $web_page_ct->get_field('Parent');
if($field->is_forward_reference()) {
echo("Parent is a forward reference field.\n");
}
Related
is_data_type(), is_embedded_reference(), is_back_reference(), is_dimension_field()