CMS MADE SIMPLE FORGE

Company Directory

 

[#11088] onAddCompany, onEditCompany

avatar
Created By: Martijn (mebots)
Date Submitted: Sun Jul 10 17:47:09 -0400 2016

Assigned To: Robert Campbell (calguy1000)
Version: 1.22.13
CMSMS Version: 2.1.3
Severity: Major
Resolution: Invalid
State: Open
Summary:
onAddCompany, onEditCompany
Detailed Description:
Hello,

The object send to the onAddCompany and onEditCompany is private, can you make
this public, so we can reach the elements a normal way.

I have now used:

$objCompany = $params["object"];
$status = $objCompany->__get('status');
$id = $objCompany->__get('id');

This is working, but if you change the code, the maybe you change the __get()
function and my code won't work anymore.

Or send also the id seperate to the event, as you do with onDeleteCompany.

With here the topic on the forum:

http://forum.cmsmadesimple.org/viewtopic.php?f=7&t=75172&p=329286#p329286

Thank you

Martijn


History

Comments
avatar
Date: 2017-08-14 10:47
Posted By: Robert Campbell (calguy1000)

__get() is a magic php method... read about it.
cd_company is NOT a documented class at this time, therefore it's interface is
fluid.
      
Updates

Updated: 2017-08-14 10:47
resolution_id: => 9