Jump to content

Appending the parent function in OOP ?


terryds

Recommended Posts

I want to make a child class from the PDO class.

I want to count the queries by the parent class, so I make a property called $queries.

I'm thinking about

 

if(parent::query) { ++$this->queries };

 

But, i don't know where to put it.

Please, help me.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...