Development on Free Software - php - Xavier Castaño García
This session
This class will be only practice. We'll try to view this topics:
Objects and Inheritance
Development with templates
Configuration
Session
Other useful trips...
Objects and inheritance
Exercise 1: We are going to develop a class which extends “userhandler.php” in order to check if username and password matches with the parameters passed.
Keywords: mysql (mysql_connect, mysql_query).
Exercise 2: We are going to extract mysql functions from handler in order to avoid coupling between handler and mysql.
Objects and inheritance
Comments:
You can see that in php 5 you can:
Autoload objects
Define visibility
Use the scope resolution operator (::) to access static, constants overridden members.
Define abstract classes, interfaces.
Overloading __set, __get, __isset, __unset and __call.
0 comments
Post a comment