开发者

JTable class and multiple tables

is it possible to use JTable class for more than one table ? For example I have three tables:

language (id,lang_name, publish开发者_如何学运维ed)

translators (id, name,surname, phone, email, published)

trans_lang_rel(language and translator relation. one translator can translate from one or more languages)

id, trans_id, lang_id

So, can I use JTable class for it ?

Your help would be appreciated.


I doubt it. Because all of the member variables of your class should match the column names in the database. So 'id' would be overwritten.

JTable is located at /joomla/database/table.php, you can check how it works from there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜