DNADesign\SilverStripeElementalDecisionTree\Model\DecisionTreeAnswer
Synopsis
class DecisionTreeAnswer
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static string $table_name = 'DecisionTreeAnswer';
- private static string $default_sort = 'Sort ASC';
- // methods
- public void getCMSFields()
- public void canCreate()
- public void canView()
- public void canEdit()
- public void canDelete()
- public String TitleWithQuestion()
- public String CMSEditLink()
- public String CMSAddStepLink()
- public String getRecursiveEditPath()
- public String getRecursiveEditPathForSelf()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $default_sort
- $has_one
- $summary_fields
- $table_name
Methods
public
- CMSAddStepLink() — Construct the link tp create a new ResultingStep for this answer
- CMSEditLink() — Create a link that allowd to edit this object in the CMS To do this, it first finds its parent question then rewind the tree up to the element then append its edit url to the edit url of its parent question
- TitleWithQuestion() — Used as breadcrumbs on the parent Step
- canCreate()
- canDelete() — Can only delete an answer that doesn't have a dependant question
- canEdit()
- canView()
- getCMSFields()
- getRecursiveEditPath() — Recursively construct the link to edit this object
- getRecursiveEditPathForSelf() — Return only the url segment to edit this object