Forum Moderators: coopster

Message Too Old, No Replies

private functions in a interface decleration

         

bleak26

10:59 pm on Apr 8, 2007 (gmt 0)

10+ Year Member



When i declare a function private
in my interface decleration i recive the following error.

Fatal error: Access type for interface method dbwrapper::sanitise() must be omitted

Can any one tell me why?

Once again thankyou

interface dbwrapper {
public function connect_to_db($db_purpose_type);
public function set_query($query);
public function execute_query();
public function result_object();
public function prepare();
public function bind();
private function sanitise();
}

class mysqli_wrapper implements dbwrapper{
private function sanitise(){

}
}

perl_diver

5:19 am on Apr 9, 2007 (gmt 0)

10+ Year Member



is this perl?

bleak26

6:33 am on Apr 9, 2007 (gmt 0)

10+ Year Member



sorry guys ,it was late when i posted. please move this to the php forum.