CommentFormSubmit.php

Go to the documentation of this file.
00001 <?php
00003 // {{{ license
00004 
00005 // +----------------------------------------------------------------------+
00006 // | FastFrame Application Framework                                      |
00007 // +----------------------------------------------------------------------+
00008 // | Copyright (c) 2002-2006 The Codejanitor Group                        |
00009 // +----------------------------------------------------------------------+
00010 // | This source file is subject to the GNU Lesser Public License (LGPL), |
00011 // | that is bundled with this package in the file LICENSE, and is        |
00012 // | available at through the world-wide-web at                           |
00013 // | http://www.fsf.org/copyleft/lesser.html                              |
00014 // | If you did not receive a copy of the LGPL and are unable to          |
00015 // | obtain it through the world-wide-web, you can get it by writing the  |
00016 // | Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
00017 // | MA 02111-1307, USA.                                                  |
00018 // +----------------------------------------------------------------------+
00019 // | Authors: Jason Rust <jrust@codejanitor.com>                          |
00020 // | Authors: Greg Gilbert <ggilbert@codejanitor.com>                          |
00021 // +----------------------------------------------------------------------+
00022 
00023 // }}}
00024 // {{{ requires
00025 
00026 require_once FASTFRAME_ROOT . 'lib/FastFrame/Action/FormSubmit.php';
00027 
00028 // }}}
00029 // {{{ class FF_Action_FormSubmit_Category
00030 
00042 // }}}
00043 class FF_Action_FormSubmit_Comment extends FF_Action_FormSubmit {
00044     // {{{ fillModelWithSubmitData()
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     // {{{ getSingularText()
00071 
00078     function getSingularText()
00079     {
00080         return $this->o_registry->getConfigParam('comment/singular_text');
00081     }
00082 
00083     // }}}
00084     // {{{ setProblemActionId()
00085 
00086     function setProblemActionId()
00087     {
00088         $this->o_nextAction->setNextActionId(ACTION_CONFIRM);
00089     }
00090 
00091     // }}}
00092     // {{{ setSuccessActionId()
00093 
00094     function setSuccessActionId()
00095     {
00096         $this->o_nextAction->setNextActionId(ACTION_CONFIRM);
00097     }
00098 
00099     // }}}
00100 }
00101 ?>

Generated on Fri Jun 23 11:38:15 2006 for FastFrame by  doxygen 1.4.4