![]() | WEBSITE FOR SALE INCLUDING ALL HACKS,IF INTERESTED EMAIL TO ADMIN@ZIKIHIDEOUT.COM |
| |||||||
| Tutorials/Articles Programming,template and any other tutorials are located here. |
| Welcome to the Ziki's Hideout~The Hideout From Reality~vBulletin Modifications forums. You can download free and paid vBulletin modifications,hacks and styles.You can even find vBulletin services,webmaster and coding help. You are currently viewing our boards as a guest which gives you limited access to our modifications,hacks and other vBulletin resources.By joining our community, you agree to the forum rules and that you do own a valid vBulletin license If you have any problems with the registration process or your account login, please contact us. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| | #1 (permalink) | |||
| Owner/Admin | Ok after I learned how to do it I want to teach it in a much easier way.So the base of an object is to create the class which looks something like this: Quote:
Ok we now created a class which will hold the prefix of all functions so now we want to try adding a simple function,for instance: Quote:
So now we created a function inside.Notice $this which will be later replaced by the name of the class. But when you would try to echo it it would give you an error that the function is a non-object.For that we have to construct the actual object: Quote:
This was a very short introduction to OOP. __________________ This is my signature | |||
| | |