O'Reilly logo

PHP Application Development with NetBeans Beginner's Guide by M A Hossain Tonu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the data access layer

The data access layer will consist of a User DAO class to provide database abstraction and an abstract Base DAO class to provide abstract methods, which is required for the User DAO class to be implemented. Also, we will create the abstract class to provide abstract methods for DAO classes to be created in our future projects. Note that we will use PHP namespace, My\Dao, for the data access layer classes.

Creating the BaseDao abstract class

The abstract class will be used to provide a basic framework for subclasses to implement methods. Simply, the basic database operations are CRUD or create, read, update, and delete. So, the abstract class will provide these types of abstract methods along with methods that will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required