[Phpmyadmin-devel] OOP Restructuring of PMA - One hell of of an Idea!!

Michal Čihař michal at cihar.com
Fri Mar 26 00:12:45 CET 2010


Hi

Dne Wed, 24 Mar 2010 11:33:08 +0530
Vipin Nair <swvist at gmail.com> napsal(a):

> Hello guys,
> I have an idea for OO restructuring of PMA. I think converting the code to
> OO will help developers deal with PMA better. The PMA can be divided into
> four different subparts.
> 
> They are:
> 1) Code that deals with Database (Create, delete, alter)
> 2) Code that Deals with Tables (Create, delete, alter)
> 3) CRUD
> 4) Others (User management, sync, etc)

The Others part here is huge.

> The above four sub-parts work together to do what PMA does, but they can
> also be treated independently. What i am suggesting is that the above four
> subparts can be converted into 4 different core classes and they can work
> together.

You need more classes as there is too much functionality and the
classes would become too big. For example check existing Table class,
which really does cover only static methods right now and is already
big enough.

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20100326/43f3b068/attachment.sig>


More information about the Developers mailing list