NZTA\SDLT\Model\Risk
A "Risk" can be associated with a "Risk Questionnaire" and is used to calculate a "Base Impact Rating".
Synopsis
class Risk
extends DataObject
{
- // members
- private static array $db = ;
- private static array $belongs_many_many = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- private static array $extra_export_fields = ;
- private static string $table_name = 'Risk';
- private static boolean $show_import_button = true;
- private static boolean $show_export_button = true;
- // methods
- public bool canView()
- public FieldList getCMSFields()
- public ValidationResult validate()
- public static DataObject find_or_make_by_name()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $belongs_many_many — array
- $db — array
- $extra_export_fields
—
array
Used by {@link QuestionnaireAdmin} and others. - $has_many — array
- $searchable_fields — array
- $summary_fields — array
- $table_name — string
Methods
public
- canView() — Allow logged-in users have access to this model
- find_or_make_by_name() — find or create a new risk from the given name string
- getCMSFields()
- validate()