[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - ProjectManager - Roles storage object * 4 * http://www.egroupware.org * 5 * Written and (c) 2005 by Ralf Becker <RalfBecker@outdoor-training.de> * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 13 /* $Id: class.soroles.inc.php 18333 2005-05-21 18:14:26Z ralfbecker $ */ 14 15 include_once (EGW_INCLUDE_ROOT.'/etemplate/inc/class.so_sql.inc.php'); 16 17 /** 18 * Roles storage object of the projectmanager 19 * 20 * Tables: egw_pm_roles 21 * 22 * @package projectmanager 23 * @author RalfBecker-AT-outdoor-training.de 24 * @copyright (c) 2005 by RalfBecker-AT-outdoor-training.de 25 * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License 26 */ 27 class soroles extends so_sql 28 { 29 /** 30 * Constructor, calls the constructor of the extended class 31 * 32 * @param int $pm_id pm_id of the project to use, default null 33 */ 34 function soroles($pm_id=null) 35 { 36 $this->so_sql('projectmanager','egw_pm_roles'); 37 38 if ((int) $pm_id) 39 { 40 $this->pm_id = (int) $pm_id; 41 } 42 } 43 44 /** 45 * reimplemented to set some defaults and order by 'pm_id DESC,role_acl DESC' 46 * 47 * @param string $value_col column-name for the values of the array, can also be an expression aliased with AS 48 * @param string $key_col='' column-name for the keys, default '' = same as $value_col: returns a distinct list 49 * @param array $filter=array() to filter the entries 50 * @param string $order='' order, default '' = same as $value_col 51 * @return array with key_col => value_col pairs 52 */ 53 function query_list($value_col='role_title',$key_col='role_id',$filter=array(),$order='pm_id DESC,role_acl DESC') 54 { 55 return parent::query_list($value_col,$key_col,$filter,$order); 56 } 57 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |