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 require_once FASTFRAME_ROOT . 'lib/FastFrame/ActionHandlerConfig.php';
00026 require_once dirname(__FILE__) . '/../Model/Job.php';
00027 require_once dirname(__FILE__) . '/actions.php';
00028
00029
00030
00031
00042
00043 class FF_ActionHandlerConfig_Job extends FF_ActionHandlerConfig {
00044
00045
00052 function loadConfig()
00053 {
00054 $appName = $this->actionHandler->o_registry->getCurrentApp();
00055 $o_output =& FF_Output::factory();
00056 $o_output->o_tpl->assign('I_title', $o_output->imgTag(
00057 't_jobs.gif', 'title', array('app' => $appName)));
00058 $this->actionHandler->setDefaultActionId(ACTION_DISPLAY);
00059 $this->actionHandler->batchModifyActions(
00060 array(ACTION_LIST, ACTION_EDIT, ACTION_ADD, ACTION_EDIT_SUBMIT, ACTION_ADD_SUBMIT, ACTION_DISPLAY, ACTION_DELETE),
00061 $this->actionHandler->o_registry->getAppFile('Action', $appName, 'libs'),
00062 '_Job',
00063 'Job'
00064 );
00065 $this->actionHandler->addAction(
00066 ACTION_CONTACT,
00067 $this->actionHandler->o_registry->getAppFile('Action/Contact.php', $appName, 'libs'),
00068 'FF_Action_AlumContact'
00069 );
00070 $this->actionHandler->addAction(
00071 ACTION_CONTACT_SUBMIT,
00072 $this->actionHandler->o_registry->getAppFile('Action/ContactSubmit.php', $appName, 'libs'),
00073 'FF_Action_AlumContactSubmit'
00074 );
00075 $this->actionHandler->o_model =& new FF_Model_Job();
00076 }
00077
00078
00079 }
00080 ?>