Well my implementation would consists of base class for rendering the schema with virtual methods for rendering the primitives (box, line, text, ...) and subclasses for each format which would actually implement these methods.
I think that makes sense. Would the pdf schema export eventually also be converted to use this framework? (Or is it better left alone since it already works?)
Yian
On Mon, Mar 29, 2010 at 4:53 AM, Michal Čihař michal@cihar.com wrote:
Hi
Dne Mon, 29 Mar 2010 02:16:34 -0700 Yian Shang yian.shang@gmail.com napsal(a):
So since SVG and EPS are both just XML files
No, EPS is text format, not a XML. See http://www.tailrecursive.org/postscript/eps.html.
, would using PHP's DOM libraries to generate them be best? And also, since phpMyAdmin is
rewriting
things in object-oriented php, would that be the way in which elements of pdf_schema.php are combined into a generic schema generating class and
then
used by other formats?
Well my implementation would consists of base class for rendering the schema with virtual methods for rendering the primitives (box, line, text, ...) and subclasses for each format which would actually implement these methods.
-- Michal Čihař | http://cihar.com | http://blog.cihar.com
Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel