Programmatically create events

  • Thomas WIATR
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 9 months ago #44837 by Thomas WIATR
Programmatically create events was created by Thomas WIATR
Hello,

Is there a documentation (or some PHP code samples) that can help me to programmatically create events from a custom interface (or by importing a csv or xml file) that contains all the mandatory parameters of the events ?

Thanks by advance,

Thomas

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #44863 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Programmatically create events
Hi Thomas

We don't have a documentation or sample code in this case. The event information are stored in #__eb_events table. So you might want to look at the structure of that database table to see the fields and then write a script to import events data.

Tuan

Please Log in or Create an account to join the conversation.

  • Thomas WIATR
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 8 months ago #44870 by Thomas WIATR
Replied by Thomas WIATR on topic Programmatically create events
Thank you for your answer.

I understand from your answer that there is no "API-like" functionning on Event booking allowing all kind of automation.
I think i'll be able to script something that insert directly information in the database, but i would be more confident in code written by a seasoned developper like you regarding security issues...

Just before i close this topic, do you know a website where i can find the best joomla development practice to avoid security issues ?

Thank you for your help,

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #44907 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Programmatically create events
Hi Thomas

I don't know a site to recommend, but this page might be helpful to you docs.joomla.org/Secure_coding_guidelines

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc