ActionHandler/Assignment.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/ActionHandlerConfig.php';
00026 require_once dirname(__FILE__) . '/../Model/Assignment.php';
00027 require_once dirname(__FILE__) . '/actions.php';
00028 
00029 // }}}
00030 // {{{ class FF_ActionHandlerConfig_Assignment
00031 
00042 // }}}
00043 class FF_ActionHandlerConfig_Assignment extends FF_ActionHandlerConfig {
00044     // {{{ loadConfig()
00045 
00052     function loadConfig()
00053     {
00054         $appName = $this->actionHandler->o_registry->getCurrentApp();
00055         $this->actionHandler->setDefaultActionId(ACTION_LIST);
00056         $this->actionHandler->batchModifyActions(
00057             array(ACTION_LIST, ACTION_EDIT, ACTION_ADD, ACTION_EDIT_SUBMIT, ACTION_ADD_SUBMIT, ACTION_DELETE),
00058             $this->actionHandler->o_registry->getAppFile('Action', $appName, 'libs'), 
00059             '_Assignment',
00060             'Assignment'
00061         );
00062         $this->actionHandler->addAction(
00063             ACTION_BATCH_EDIT, 
00064             $this->actionHandler->o_registry->getAppFile('Action/AssignmentBatchEdit.php', $appName, 'libs'), 
00065             'FF_Action_BatchEdit_Assignment'
00066         );
00067         $this->actionHandler->addAction(
00068             ACTION_BATCH_EDIT_SUBMIT, 
00069             $this->actionHandler->o_registry->getAppFile('Action/AssignmentBatchEditSubmit.php', $appName, 'libs'), 
00070             'FF_Action_BatchEditSubmit_Assignment'
00071         );
00072         $this->actionHandler->addAction(
00073             ACTION_BATCH_DELETE, 
00074             $this->actionHandler->o_registry->getAppFile('Action/AssignmentBatchDelete.php', $appName, 'libs'), 
00075             'FF_Action_BatchDelete_Assignment'
00076         );
00077         $this->actionHandler->o_model =& new FF_Model_Assignment();
00078     }
00079 
00080     // }}}
00081 }
00082 ?>

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