source: pmb4.2/trunk/fuentes/pmb/classes/rtf_factory.class.php @ 815

Last change on this file since 815 was 815, checked in by jrpelegrina, 4 years ago

Initial release of pmb 4.2

  • Property svn:executable set to *
File size: 652 bytes
Line 
1<?php
2// +-------------------------------------------------+
3// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
4// +-------------------------------------------------+
5// $Id: rtf_factory.class.php,v 1.2 2011-08-16 12:17:31 dbellamy Exp $
6
7if (stristr($_SERVER['REQUEST_URI'], ".class.php")) die("no access");
8
9require_once("$class_path/rtf/Rtf.php");
10
11class pmb2RTF extends Rtf {
12       
13        function to_utf8($string){
14                global $charset;
15               
16                if($charset != 'utf-8'){
17                        return utf8_encode($string);
18                }
19                return $string;
20        }
21       
22}
23
24
25class rtf_factory {
26       
27        public static function make() {
28               
29                return new pmb2RTF();
30        }
31}
32
Note: See TracBrowser for help on using the repository browser.