I had encrypted customer's firstname ,lastname and email and need to decrypt data to show in front end.
I will be Overriding
public function getCustomer() located at
Customer Data retrieved from
$customer = Mage::getModel('customer/customer')
When ever i use
print_r($customer) to print data of logged in customer i get
I want to replace decrypted value of firstname,lastname and email with an array
since methods are protected so i have converted object into an array and converted again into an Object after passing decryption function , but converted Object is without protected methods.
I'm getting Fatal Error when converted Object is passed to function
What I want
Replace three encrypted values firstname , lastname and email in Object
Basic Question is :- How to Replace values in an object ?