PriorityFormSubmit.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 // +----------------------------------------------------------------------+
00021 
00022 // }}}
00023 // {{{ requires
00024 
00025 require_once FASTFRAME_ROOT . 'lib/FastFrame/Action/FormSubmit.php';
00026 
00027 // }}}
00028 // {{{ class FF_Action_FormSubmit_Priority
00029 
00040 // }}}
00041 class FF_Action_FormSubmit_Priority extends FF_Action_FormSubmit {
00042     // {{{ fillModelWithSubmitData()
00043 
00050     function fillModelWithSubmitData()
00051     {
00052         $this->o_model->setId(FF_Request::getParam('objectId', 'p'));
00053         $this->o_model->setName(FF_Request::getParam('name', 'p'));
00054         $this->o_model->setPoints(FF_Request::getParam('points', 'p'));
00055         $this->o_model->setIsDefault(FF_Request::getParam('is_default', 'p'));
00056         $this->o_model->setAlertMessage(FF_Request::getParam('alert_message', 'p'));
00057     }
00058 
00059     // }}}
00060     // {{{ getSingularText()
00061 
00068     function getSingularText()
00069     {
00070         return _('priority');
00071     }
00072 
00073     // }}}
00074     // {{{ validateInput()
00075 
00082     function validateInput()
00083     {
00084         require_once dirname(__FILE__) . '/../Validate/Priority.php';
00085         $o_validate =& new FF_Validate_Priority($this->o_model, $this->isUpdate());
00086         return $o_validate->validate();
00087     }
00088 
00089     // }}}
00090 }
00091 ?>

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