CRUD operations with Joomla entities (articles, menus, modules, etc) via PHP

238 views
Skip to first unread message

Sergei Petrunin

unread,
Dec 24, 2013, 7:56:34 PM12/24/13
to joomla-de...@googlegroups.com
The problem:
I want to create a website about football games.
I want each football game to be a Joomla article (with associated menus and staff), so I'll be able to write my reviews about each game.
But I want this articles to be created automatically, based on some feed (e.g a JSON files) updated once in a while, so I can concentrate on the main part - writing the reviews and not keep track of things like updating a game score manually.

So I decided to write a PHP script in order to perform CRUD operations with different Joomla entities based on some incoming data.
(for simplicity, let it be a simple external PHP script on the same web server invoked by incoming http requests with JSON data)


The most important questions:
Witch Joomla objects I better use for creating such PHP script?
Where I can look for documentation about how to proper use this objects?


The things I had read to find the answer:
I google for 'How to create article programmatically in Joomla' and come up with suggestions like this:
http://stackoverflow.com/questions/17383294/joomla-instantiate-contentmodelarticle-really-slow
where people use ContentModelArticle or JTable in order to manipulate articles.

Unfortunately, I failed to find any documentation about how to use them. (May be I miss a link?)
For example, where I can find the list of fields for articles, menus and other objects?

I also look at extensions like FeedGator, but it's seems limited in my case. May be I'm wrong?

Thank you for attention!
And sorry, if I post to incorrect forum.
Sergey

Reply all
Reply to author
Forward
0 new messages