AbstractProfile.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.php';
00026 
00027 // }}}
00028 // {{{ class FF_Action_AbstractProfile
00029 
00041 // }}}
00042 class FF_Action_AbstractProfile extends FF_Action {
00043     // {{{ createFormElements()
00044 
00055     function createFormElements(&$in_formObj)
00056     {
00057         // interface
00058     }
00059 
00060     // }}}
00061     // {{{ getFormDefaults()
00062 
00072     function getFormDefaults($in_appName)
00073     {
00074         return array();
00075     }
00076 
00077     // }}}
00078     // {{{ getTableData()
00079 
00093     function getTableData($in_rendererObj, $in_appName, $in_readOnly)
00094     {
00095         // interface
00096     }
00097 
00098     // }}}
00099     // {{{ successfulSave()
00100 
00108     function successfulSave()
00109     {
00110         // interface
00111     }
00112 
00113     // }}}
00114     // {{{ fillModelWithSubmitData()
00115 
00127     function fillModelWithSubmitData($in_submitData, $in_appName)
00128     {
00129         // interface
00130     }
00131 
00132     // }}}
00133     // {{{ _getFieldName()
00134 
00146     function _getFieldName($in_fieldName, $in_appName)
00147     {
00148         return $in_appName . '[' . $in_fieldName . ']';
00149     }
00150 
00151     // }}}
00152     // {{{ _getFieldParam()
00153 
00167     function _getFieldParam($in_field, $in_param, $in_appName)
00168     {
00169         $a_data = $this->o_registry->getConfigParam('profile/fields', array(), $in_appName);
00170         if (isset($a_data[$in_field][$in_param])) {
00171             return $a_data[$in_field][$in_param];
00172         }
00173         else {
00174             switch ($in_param) {
00175                 case 'locked':
00176                 case 'required':
00177                     return false;
00178                 case 'value':
00179                 case 'desc':
00180                 default:
00181                     return '';
00182             }
00183         }
00184     }
00185 
00186     // }}}
00187 }
00188 ?>

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