00001 <?php
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 require_once FASTFRAME_ROOT . 'lib/FastFrame/Action/FormSubmit.php';
00027
00028
00029
00030
00042
00043 class FF_Action_FormSubmit_Comment extends FF_Action_FormSubmit {
00044
00045
00052 function fillModelWithSubmitData()
00053 {
00054 $this->o_model->setId(FF_Request::getParam('objectId', 'p'));
00055 $this->o_model->setName(FF_Request::getParam('name', 'p'));
00056 $this->o_model->setEmail(FF_Request::getParam('email', 'p'));
00057 $this->o_model->setPhone(FF_Request::getParam('phone', 'p'));
00058 $this->o_model->setNominee(FF_Request::getParam('nominee', 'p'));
00059 $this->o_model->setNomineeType(FF_Request::getParam('nominee_type', 'p'));
00060 $this->o_model->setComment(FF_Request::getParam('comment', 'p'));
00061 FF_Request::setParam('name', FF_Request::getParam('name','p'),'s');
00062 FF_Request::setParam('phone', FF_Request::getParam('phone','p'),'s');
00063 FF_Request::setParam('email', FF_Request::getParam('email','p'),'s');
00064 FF_Request::setParam('nominee', FF_Request::getParam('nominee','p'),'s');
00065 FF_Request::setParam('nominee_type', FF_Request::getParam('nominee_type','p'),'s');
00066 FF_Request::setParam('comment', FF_Request::getParam('comment','p'),'s');
00067 }
00068
00069
00070
00071
00078 function getSingularText()
00079 {
00080 return $this->o_registry->getConfigParam('comment/singular_text');
00081 }
00082
00083
00084
00085
00086 function setProblemActionId()
00087 {
00088 $this->o_nextAction->setNextActionId(ACTION_CONFIRM);
00089 }
00090
00091
00092
00093
00094 function setSuccessActionId()
00095 {
00096 $this->o_nextAction->setNextActionId(ACTION_CONFIRM);
00097 }
00098
00099
00100 }
00101 ?>