You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started this awesome library from today. Thankyou very much. One thing i badly miss that I could not find function to retrieve all info. Casting to array doesn't sound good specially when having issue to retrieve a single info as keys are being prepending * sign in keys(eg: *userId). For some weird reason I can't get it at all.
I am proposing a getter function named getInfo() for each class. This method will be introduced in Info classes for example UserInfo. By doing this it would be safe to retrieve protected variables easily.
Please suggest.
The text was updated successfully, but these errors were encountered:
For my own sake I introduced a getXInfo() method where X=Advertiser or Zone whatever. What I did that I returned an associative array with all parameters. If you think it's a good idea I could submit the patch
This is how add getInfo methods in all Info Interfaces, saves me to get into Array conversion to get values
public function getAdvertiserInfo()
{
return ["advertiserId"=>$this->advertiserId,"accountId"=>$this->accountId,"agencyId"=>$this->agencyId,"advertiserName"=>$this->advertiserName,"contactName"=>$this->contactName,'emailAddress' =>$this->emailAddress,"comments" =>$this->comments];
}
I started this awesome library from today. Thankyou very much. One thing i badly miss that I could not find function to retrieve all info. Casting to array doesn't sound good specially when having issue to retrieve a single info as keys are being prepending * sign in keys(eg: *userId). For some weird reason I can't get it at all.
I am proposing a getter function named getInfo() for each class. This method will be introduced in Info classes for example UserInfo. By doing this it would be safe to retrieve protected variables easily.
Please suggest.
The text was updated successfully, but these errors were encountered: