[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This file implements the controller for item types management. 4 * 5 * This file is part of the evoCore framework - {@link http://evocore.net/} 6 * See also {@link http://sourceforge.net/projects/evocms/}. 7 * 8 * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} 9 * 10 * {@internal License choice 11 * - If you have received this file as part of a package, please find the license.txt file in 12 * the same folder or the closest folder above for complete license terms. 13 * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/) 14 * then you must choose one of the following licenses before using the file: 15 * - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php 16 * - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php 17 * }} 18 * 19 * {@internal Open Source relicensing agreement: 20 * }} 21 * 22 * @package admin 23 * 24 * {@internal Below is a list of authors who have contributed to design/coding of this file: }} 25 * @author fplanque: Francois PLANQUE. 26 * 27 * @version $Id: item_types.ctrl.php,v 1.1 2007/06/25 11:00:23 fplanque Exp $ 28 */ 29 if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); 30 31 // Check minimum permission: 32 $current_User->check_perm( 'options', 'view', true ); 33 34 $AdminUI->set_path( 'options', 'types' ); 35 36 $list_title = T_('Item/Post/Page types'); 37 $default_col_order = '-A'; 38 $edited_name_maxlen = 40; 39 $locked_IDs = array( 1000, 2000, 3000, 4000, 5000 ); // Prevent editing of Page type 40 $perm_name = 'options'; 41 $perm_level = 'edit'; 42 $form_below_list = true; 43 44 /** 45 * Delete restrictions 46 */ 47 $delete_restrictions = array( 48 array( 'table'=>'T_items__item', 'fk'=>'post_ptyp_ID', 'msg'=>T_('%d related items') ), 49 ); 50 51 $restrict_title = T_('Cannot delete item type'); //«%s» 52 53 // Used to know if the element can be deleted, so to display or not display confirm delete dialog (true:display, false:not display) 54 // It must be initialized to false before checking the delete restrictions 55 $checked_delete = false; 56 57 $GenericElementCache = & new GenericCache( 'GenericElement', false, 'T_items__type', 'ptyp_', 'ptyp_ID' ); 58 59 require $inc_path.'generic/inc/_generic_listeditor.php'; 60 61 /* 62 * $Log: item_types.ctrl.php,v $ 63 * Revision 1.1 2007/06/25 11:00:23 fplanque 64 * MODULES (refactored MVC) 65 * 66 * Revision 1.11 2007/05/14 02:43:04 fplanque 67 * Started renaming tables. There probably won't be a better time than 2.0. 68 * 69 * Revision 1.10 2007/05/13 20:44:52 fplanque 70 * more pages support 71 * 72 * Revision 1.9 2007/04/26 00:11:12 fplanque 73 * (c) 2007 74 * 75 * Revision 1.8 2007/03/26 12:59:18 fplanque 76 * basic pages support 77 * 78 * Revision 1.7 2007/03/26 09:34:16 fplanque 79 * removed deprecated list editor 80 * 81 * Revision 1.6 2006/11/26 01:42:09 fplanque 82 * doc 83 */ 84 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |