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
00026 require_once FASTFRAME_ROOT . 'lib/FastFrame/ActionHandlerConfig.php';
00027 require_once dirname(__FILE__) . '/../Model/Spotlight.php';
00028 require_once dirname(__FILE__) . '/actions.php';
00029
00030
00031
00032
00044
00045 class FF_ActionHandlerConfig_Spotlight extends FF_ActionHandlerConfig {
00046
00047
00054 function loadConfig()
00055 {
00056 $appName = $this->actionHandler->o_registry->getCurrentApp();
00057 $o_output =& FF_Output::factory();
00058 $o_output->o_tpl->assign('I_title', $o_output->imgTag(
00059 't_spotlight.gif', 'title', array('app' => $appName)));
00060 $this->actionHandler->setDefaultActionId(ACTION_DISPLAY);
00061 $this->actionHandler->batchModifyActions(
00062 array(ACTION_LIST, ACTION_EDIT, ACTION_ADD, ACTION_EDIT_SUBMIT, ACTION_ADD_SUBMIT, ACTION_DISPLAY, ACTION_DELETE),
00063 $this->actionHandler->o_registry->getAppFile('Action', $appName, 'libs'),
00064 '_Spotlight',
00065 'Spotlight'
00066 );
00067 $this->actionHandler->addAction(
00068 ACTION_DISPLAY_SPOTIMAGE,
00069 $this->actionHandler->o_registry->getAppFile('Action/SpotlightImage.php', $appName, 'libs'),
00070 'FF_Action_Display_Image'
00071 );
00072 $this->actionHandler->addAction(
00073 ACTION_CONTACT,
00074 $this->actionHandler->o_registry->getAppFile('Action/Contact.php', $appName, 'libs'),
00075 'FF_Action_AlumContact'
00076 );
00077 $this->actionHandler->addAction(
00078 ACTION_CONTACT_SUBMIT,
00079 $this->actionHandler->o_registry->getAppFile('Action/ContactSubmit.php', $appName, 'libs'),
00080 'FF_Action_AlumContactSubmit'
00081 );
00082 $this->actionHandler->o_model =& new FF_Model_Spotlight();
00083 }
00084
00085
00086
00087
00094 function hasCheckAuth()
00095 {
00096 return true;
00097 }
00098
00099
00100
00101
00109 function checkAuth()
00110 {
00111 if ($this->actionHandler->getActionId() != ACTION_DISPLAY_SPOTIMAGE &&
00112 $this->actionHandler->getActionId() != ACTION_DISPLAY &&
00113 $this->actionHandler->getActionId() != ACTION_LIST &&
00114 $this->actionHandler->getActionId() != ACTION_CONTACT &&
00115 $this->actionHandler->getActionId() != ACTION_CONTACT_SUBMIT) {
00116 $this->actionHandler->checkAuth(true);
00117 }
00118 }
00119
00120
00121 }
00122 ?>