mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
29 lines
508 B
PHP
Executable File
29 lines
508 B
PHP
Executable File
<?php
|
|
/**
|
|
* Contents of an UserDefinedForm submission
|
|
* @package cms
|
|
*/
|
|
class SubmittedForm extends DataObject {
|
|
static $has_one = array(
|
|
"SubmittedBy" => "Member",
|
|
"Parent" => "UserDefinedForm",
|
|
);
|
|
|
|
static $has_many = array(
|
|
"FieldValues" => "SubmittedFormField"
|
|
);
|
|
|
|
/**
|
|
* Return the Link to DeleteLink
|
|
*
|
|
* @return String
|
|
*/
|
|
public function DeleteLink() {
|
|
return $this->Parent()->Link().'deletesubmission/'.$this->ID;
|
|
}
|
|
|
|
function SubmitTime() {
|
|
return $this->Created;
|
|
}
|
|
}
|
|
?>
|