[ 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.boexport.inc.php 19414 2005-10-14 13:57:59Z ralfbecker $ */ 14 15 class boexport 16 { 17 var $start = 0; 18 var $query = ''; 19 var $sort = ''; 20 var $total = 0; 21 var $catbo; 22 var $cats; 23 var $so; 24 25 var $debug; 26 var $use_session = False; 27 28 function boexport($session=False) 29 { 30 $this->so =& CreateObject('news_admin.soexport'); 31 $this->debug = False; 32 if($session) 33 { 34 $this->read_sessiondata(); 35 $this->use_session = True; 36 foreach(array('start','query','sort','order') as $var) 37 { 38 if (isset($_POST[$var])) 39 { 40 $this->$var = $_POST[$var]; 41 } 42 elseif (isset($_GET[$var])) 43 { 44 $this->$var = $_GET[$var]; 45 } 46 } 47 $this->save_sessiondata(); 48 $this->catbo =& CreateObject('phpgwapi.categories'); 49 $this->cats = $this->catbo->return_array('all',$this->start,True,$this->query,$this->sort,'cat_name',True); 50 } 51 } 52 53 function save_sessiondata() 54 { 55 56 $data = array( 57 'start' => $this->start, 58 'query' => $this->query, 59 'sort' => $this->sort, 60 'order' => $this->order, 61 ); 62 if($this->debug) { echo '<br>Save:'; _debug_array($data); } 63 $GLOBALS['egw']->session->appsession('session_data','news_admin_export',$data); 64 } 65 66 function read_sessiondata() 67 { 68 $data = $GLOBALS['egw']->session->appsession('session_data','news_admin_export'); 69 if($this->debug) { echo '<br>Read:'; _debug_array($data); } 70 71 $this->start = $data['start']; 72 $this->query = $data['query']; 73 $this->sort = $data['sort']; 74 $this->order = $data['order']; 75 } 76 77 function readconfig($cat_id) 78 { 79 return $this->so->readconfig($cat_id); 80 } 81 82 function saveconfig($cat_id,$config) 83 { 84 $this->so->saveconfig($cat_id,$config); 85 } 86 }
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 |