This bombs out in PHP 4.1.2:
/**
* Options classes using views that will allow for options for components of section views
*
* @author Phil Powell
* @version 1.0.0
* @package IMAGE_CATALOG
*/
class BlahView extends OptionsView {
function BlahView() {
print_r("BLAH!");
}
}
/**
* Options classes using views that will allow for options for components of section views
*
* @author Phil Powell
* @version 1.0.0
* @package IMAGE_CATALOG
*/
class OptionsView extends PaginationView {
/**
* Constructor
*
* @access public
*/
function OptionsView() {} // CONSTRUCTOR
}
Error:
Fatal error: Class blahview: Cannot inherit from undefined class optionsview in /catalog/include/classes.inc.php on line 2841
This, however, works just fine!!
/**
* Options classes using views that will allow for options for components of section views
*
* @author Phil Powell
* @version 1.0.0
* @package IMAGE_CATALOG
*/
class OptionsView extends PaginationView {
/**
* Constructor
*
* @access public
*/
function OptionsView() {} // CONSTRUCTOR
}
/**
* Options classes using views that will allow for options for components of section views
*
* @author Phil Powell
* @version 1.0.0
* @package IMAGE_CATALOG
*/
class BlahView extends OptionsView {
function BlahView() {
print_r("BLAH!");
}
}
No errors of any kind whatsoever! It would be so simple as to move the class physically BELOW OptionsView then that would be fine, except, that makes absolutely NO sense! Why would order matter with classes physically placed in the exact same script?
Phil