webCOMAND

ContentType::get_fields()

Return an array of Content Type Fields for this Content Type and all Content Types it extends recursively.

Prototype

array get_fields()

Return

Return an array of Content Type Fields for this Content Type and all Content Types it extends recursively.

Example

// list the Web Page Status field's choices
$repo = comand::repo();
$user_ct = $repo->get_content_type('User');
$fields = $web_page_ct->get_fields();
foreach($fields as $field) {
    echo('$field->Identifier\n');
}

Related

get_field()