[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/items/ -> item_statuses.ctrl.php (source)

   1  <?php
   2  /**

   3   * This file implements the controller for item statuses 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   * Parts of this file are copyright (c)2005-2006 by PROGIDISTRI - {@link http://progidistri.com/}.

  10   *

  11   * {@internal License choice

  12   * - If you have received this file as part of a package, please find the license.txt file in

  13   *   the same folder or the closest folder above for complete license terms.

  14   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)

  15   *   then you must choose one of the following licenses before using the file:

  16   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php

  17   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php

  18   * }}

  19   *

  20   * {@internal Open Source relicensing agreement:

  21   * PROGIDISTRI S.A.S. grants Francois PLANQUE the right to license

  22   * PROGIDISTRI S.A.S.'s contributions to this file and the b2evolution project

  23   * under any OSI approved OSS license (http://www.opensource.org/licenses/).

  24   * }}

  25   *

  26   * @package admin

  27   *

  28   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}

  29   * @author fplanque: Francois PLANQUE.

  30   * @author mbruneau: Marc BRUNEAU / PROGIDISTRI

  31   *

  32   * @version $Id: item_statuses.ctrl.php,v 1.1 2007/06/25 11:00:23 fplanque Exp $

  33   */
  34  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  35  
  36  // Check minimum permission:

  37  $current_User->check_perm( 'options', 'view', true );
  38  
  39  $AdminUI->set_path( 'options', 'statuses' );
  40  
  41  $list_title = T_('Post statuses');
  42  $default_col_order = 'A';
  43  $edited_name_maxlen = 40;
  44  $perm_name = 'options';
  45  $perm_level = 'edit';
  46  $form_below_list = true;
  47  
  48  /**

  49   * Delete restrictions

  50   */
  51  $delete_restrictions = array(
  52          array( 'table'=>'T_items__item', 'fk'=>'post_pst_ID', 'msg'=>T_('%d related items') ),
  53      );
  54  
  55  $restrict_title = T_('Cannot delete item status');     //&laquo;%s&raquo;

  56  
  57  // Used to know if the element can be deleted, so to display or not display confirm delete dialog (true:display, false:not display)

  58  // It must be initialized to false before checking the delete restrictions

  59  $checked_delete = false;
  60  
  61  $GenericElementCache = & new GenericCache( 'GenericElement', false, 'T_items__status', 'pst_', 'pst_ID' );
  62  
  63  require $inc_path.'generic/inc/_generic_listeditor.php';
  64  
  65  /*

  66   * $Log: item_statuses.ctrl.php,v $

  67   * Revision 1.1  2007/06/25 11:00:23  fplanque

  68   * MODULES (refactored MVC)

  69   *

  70   */
  71  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics