Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Applicant extends DataObject {
- static $db = array(
- 'FirstName' => 'Text',
- 'LastName' => 'Text',
- 'DateOfBirth' => 'Date'
- );
- static $has_one = array(
- 'MyApplicantHolder' => 'ApplicantsHolder'
- );
- function getCMSFields() {
- $fields = new FieldSet();
- $fields->push( new TextField( 'FirstName', 'First Name' ) );
- $fields->push( new TextField( 'LastName', 'Last name' ) );
- $fields->push( new CalendarDateField( 'DateofBirth', 'Date of Birth' ) );
- return $fields;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment