[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This file implements the xyz Widget class. 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 * @package evocore 20 * 21 * {@internal Below is a list of authors who have contributed to design/coding of this file: }} 22 * @author fplanque: Francois PLANQUE. 23 * 24 * @version $Id: _coll_post_list.widget.php,v 1.1 2007/06/25 11:02:18 fplanque Exp $ 25 */ 26 if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); 27 28 load_class( 'widgets/model/_widget.class.php' ); 29 30 /** 31 * ComponentWidget Class 32 * 33 * A ComponentWidget is a displayable entity that can be placed into a Container on a web page. 34 * 35 * @package evocore 36 */ 37 class coll_post_list_Widget extends ComponentWidget 38 { 39 /** 40 * Constructor 41 */ 42 function coll_post_list_Widget( $db_row = NULL ) 43 { 44 // Call parent constructor: 45 parent::ComponentWidget( $db_row, 'core', 'coll_post_list' ); 46 } 47 48 49 /** 50 * Get name of widget 51 */ 52 function get_name() 53 { 54 return T_('Post list'); 55 } 56 57 58 /** 59 * Get short description 60 */ 61 function get_desc() 62 { 63 return T_('Display list of all posts'); 64 } 65 66 67 /** 68 * Display the widget! 69 * 70 * @param array MUST contain at least the basic display params 71 */ 72 function display( $params ) 73 { 74 $this->init_display( $params ); 75 76 // List of posts: 77 $this->disp_item_list( 'posts' ); 78 79 return true; 80 } 81 } 82 83 84 /* 85 * $Log: _coll_post_list.widget.php,v $ 86 * Revision 1.1 2007/06/25 11:02:18 fplanque 87 * MODULES (refactored MVC) 88 * 89 * Revision 1.2 2007/06/20 21:42:13 fplanque 90 * implemented working widget/plugin params 91 * 92 * Revision 1.1 2007/06/18 21:25:47 fplanque 93 * one class per core widget 94 * 95 */ 96 ?>
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 |
![]() |