I have a gallery class and a administration class that extends the gallery class. The gallery class is just for viewing. Inside the gallery class there is a call to a function that is only present in the administration class. In the gallery class a function is called; 'Add Image'. I can use this function in administration mode but I get an error in gallery mode because the function is not accessible from there (nor do I want it to be). I just want to test for it and display its results when the function is accessible.
class gallery {
function showStuff {
// I want to test for the following functions acessibility so I wont get an error in gallery mode.
$this->addImage();
someOtherStuff();
} // End function showStuff
} // End class gallery
class admin extends gallery {
function addImage {
dostuff;
} // End function addImage
} // End class admin
Any help is greatly appreciated,
Tuurlijk!