[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - News * 4 * http://www.egroupware.org * 5 * -------------------------------------------- * 6 * This program is free software; you can redistribute it and/or modify it * 7 * under the terms of the GNU General Public License as published by the * 8 * Free Software Foundation; either version 2 of the License, or (at your * 9 * option) any later version. * 10 * -------------------------------------------- * 11 \**************************************************************************/ 12 13 /* $Id: class.soexport.inc.php 19799 2005-11-13 22:28:19Z ralfbecker $ */ 14 15 class soexport 16 { 17 var $db; 18 var $table = 'egw_news_export'; 19 20 function soexport() 21 { 22 $this->db = clone($GLOBALS['egw']->db); 23 $this->db->set_app('news_admin'); 24 } 25 26 function readconfig($cat_id) 27 { 28 $this->db->select($this->table,'*',array('cat_id' => $cat_id),__LINE__,__FILE__); 29 30 return $this->db->row(true,'export_'); 31 } 32 33 function saveconfig($cat_id,$config) 34 { 35 $this->db->insert($this->table,array( 36 'export_type' => $config['type'], 37 'export_itemsyntax' => $config['itemsyntax'], 38 'export_title' => $config['title'], 39 'export_link' => $config['link'], 40 'export_description'=> $config['description'], 41 'export_img_title' => $config['img_title'], 42 'export_img_url' => $config['img_url'], 43 'export_img_link' => $config['img_link'], 44 ),array('cat_id' => $cat_id),__LINE__,__FILE__); 45 } 46 }
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 |