- Posts: 220
- Thank you received: 13
Need a little help with override
- Arbind Bhagat
- Topic Author
- Offline
- Elite Member
-
Less
More
4 years 4 weeks ago #142494
by Arbind Bhagat
Need a little help with override was created by Arbind Bhagat
I am overriding this file:
/components/com_eventbooking/helper/ics.php to add some extra information in the .ics file.
I would like to have the content of the "params" column in the #__eb_events table. Can you please help my by providing the code that I could add to this file so that I could get the content of the "params" column and assign it to a variable?
It looks like that shouldn't be difficult, but I am not able to get it done. Of course, I am just learning PHP, and that could be why. Please help me.
/components/com_eventbooking/helper/ics.php to add some extra information in the .ics file.
I would like to have the content of the "params" column in the #__eb_events table. Can you please help my by providing the code that I could add to this file so that I could get the content of the "params" column and assign it to a variable?
It looks like that shouldn't be difficult, but I am not able to get it done. Of course, I am just learning PHP, and that could be why. Please help me.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 4 weeks ago #142498
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Need a little help with override
Hello Cami
Are you using latest version of the extension?
If so, inside the class, you can access to $this->event . It contains data of the event is being registered and you can access to any data from there
Tuan
Are you using latest version of the extension?
If so, inside the class, you can access to $this->event . It contains data of the event is being registered and you can access to any data from there
Tuan
Please Log in or Create an account to join the conversation.
- Arbind Bhagat
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 220
- Thank you received: 13
4 years 3 weeks ago #142529
by Arbind Bhagat
Replied by Arbind Bhagat on topic Need a little help with override
Hi Tuan,
Thank you for your reply.
I tried this:
$this->event->params->update_data_from_main_event
But it didn't give me any value.
I am trying to get the value of "update_data_from_main_event" parameter from the event. Please advise.
Thank you for your reply.
I tried this:
$this->event->params->update_data_from_main_event
But it didn't give me any value.
I am trying to get the value of "update_data_from_main_event" parameter from the event. Please advise.
Please Log in or Create an account to join the conversation.
- Arbind Bhagat
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 220
- Thank you received: 13
4 years 3 weeks ago #142530
by Arbind Bhagat
Replied by Arbind Bhagat on topic Need a little help with override
I finally got it using the below code:
$paramsdata = json_decode($this->event->params);
echo $paramsdata->update_data_from_main_event;
Is this the correct way to do it?
$paramsdata = json_decode($this->event->params);
echo $paramsdata->update_data_from_main_event;
Is this the correct way to do it?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 3 weeks ago #142531
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Need a little help with override
Yes, that's correct way to do
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.