MuseiKaze Posted January 30, 2010 Share Posted January 30, 2010 Sorry I wasnt sure what section to post this in. But Ive been looking all around and I havnt been able to find anything about this on tutorial sites and typing it in google produces no results. But I was just wondering what " -> " this is called and what it does? Eg "$params->Data = $texttofax . $finalitems;" I know its probably a simple question but I cant find a thing on it. Thanks. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted January 30, 2010 Share Posted January 30, 2010 its the class assignment operator... in this case you have an instance of a class $params and you are setting a property 'Data' though these things should not be publically available for setting... it would be better to have $params->setData($texttofax . $finalitems); - this way you have control wiithin the object itself over the setting of that parameter by only allowing this publioc method to set what should be a private paramater Quote Link to comment Share on other sites More sharing options...
MuseiKaze Posted January 30, 2010 Author Share Posted January 30, 2010 Thanks heaps. I just took that little section from another thread as an example. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.