![]() |
![]() |
00001 <?php 00002 /** 00003 * wCMF - wemove Content Management Framework 00004 * Copyright (C) 2005-2009 wemove digital solutions GmbH 00005 * 00006 * Licensed under the terms of any of the following licenses 00007 * at your choice: 00008 * 00009 * - GNU Lesser General Public License (LGPL) 00010 * http://www.gnu.org/licenses/lgpl.html 00011 * - Eclipse Public License (EPL) 00012 * http://www.eclipse.org/org/documents/epl-v10.php 00013 * 00014 * See the license.txt file distributed with this work for 00015 * additional information. 00016 * 00017 * $Id: class.FailureController.php 929 2009-02-22 23:20:49Z iherwig $ 00018 */ 00019 require_once(BASE."wcmf/lib/presentation/class.Controller.php"); 00020 00021 /** 00022 * @class FailureController 00023 * @ingroup Controller 00024 * @brief FailureController is a controller that shows an error page to the user. 00025 * 00026 * <b>Input actions:</b> 00027 * - unspecified: Display the error message 00028 * 00029 * <b>Output actions:</b> 00030 * - @em ok In any case 00031 * 00032 * @param[in,out] errorMsg The message to display 00033 * 00034 * @author ingo herwig <ingo@wemove.com> 00035 */ 00036 class FailureController extends Controller 00037 { 00038 /** 00039 * @see Controller::hasView() 00040 */ 00041 function hasView() 00042 { 00043 return true; 00044 } 00045 /** 00046 * Assign error message to View. 00047 * @return False in every case. 00048 * @see Controller::executeKernel() 00049 */ 00050 function executeKernel() 00051 { 00052 // assign model to view 00053 $this->_response->setValue('errorMsg', $this->_request->getValue('errorMsg')); 00054 00055 $this->_response->setAction('ok'); 00056 return false; 00057 } 00058 } 00059 ?>
|
This page generated via doxygen 1.5.8 Mon Mar 30 01:58:34 2009. Copyright © 2009 wemove digital solutions GmbH. |
|