- ⌂ Content Type Field
- Methods
ContentTypeField::is_data_type()
Return TRUE if this field is a data type field.
Prototype
boolean is_data_type()
Return
Return TRUE if this field is a data type field, otherwise FALSE.
Example
// list the Web Page Status field's choices
$repo = comand::repo();
$web_page_ct = $repo->get_content_type('SitesWebPage');
$status_field = $web_page_ct->get_field('Status');
if($status_field->is_data_type()) {
echo("Status is a Data Type field.\n");
}