\StaffProfile
- Author: : nicolaas[at]sunnysideup.co.nz
Synopsis
class StaffProfile
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $indexes = ;
- private static array $searchable_fields = ;
- private static array $field_labels = ;
- private static array $summary_fields = ;
- private static string $singular_name = "Staff Profile";
- private static string $plural_name = "Staff Profiles";
- private static string $default_sort = "Sort ASC, Name ASC";
- private static array $defaults = ;
- private static array $subject_place_holders = ;
- protected EmailObject $emailObject = NULL;
- // methods
- public void populateDefaults()
- public void getCMSFields()
- public void fieldLabels()
- public string EncodedEmailLink()
- public string EncodedEmailText()
- public void onBeforeWrite()
- protected String SubjectLineCreator()
- protected EmailObject retrieveEmailObject()
- protected String getBestEmail()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $default_sort
- $defaults
- $field_labels
- $has_one
- $indexes
- $plural_name
- $searchable_fields
- $singular_name
- $subject_place_holders
—
array
replacement placeholders [xxx] => yyy where xxx is the string the CMS user types and yyy the replacement field / relation. - $summary_fields
protected
- $emailObject — EmailObject
Methods
protected
- SubjectLineCreator() — puts together a subject line with replacements
- getBestEmail() — finds the best email available.
- retrieveEmailObject()
public
- EncodedEmailLink() — Obscure all email links in StringField.
- EncodedEmailText() — Obscure all email links in StringField.
- fieldLabels()
- getCMSFields()
- onBeforeWrite()
- populateDefaults()