MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
converterfactory.class
Ir para a documentação deste ficheiro.
1<?php
2
4{
6
7 function ConverterFactory()
8 {
10 }
11
12 function __construct()
13 {
14 }
15
16 function getConverter($className, $properties = null)
17 {
18 global $MIOLO;
19
20 $MIOLO->Uses("persistence/converter/" . strtolower($className) . ".class");
21 eval("\$converter = new {$className}();");
22 $converter->init($properties);
23 return $converter;
24 }
25
26 static function getTrivialConverter()
27 {
28 return new TrivialConverter();
29 }
30}
31?>
getConverter($className, $properties=null)