From 93540faca8c33bb162054a21557bb41c186b45bf Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 1 Feb 2012 17:00:44 +0000 Subject: [PATCH] a note for the future --- core/extension.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/extension.class.php b/core/extension.class.php index 98d6bc15..698731dc 100644 --- a/core/extension.class.php +++ b/core/extension.class.php @@ -92,6 +92,9 @@ abstract class SimpleExtension implements Extension { var $theme; var $_child; + // in PHP5.3, late static bindings can take care of this; __CLASS__ + // used here will refer to the subclass + // http://php.net/manual/en/language.oop5.late-static-bindings.php public function i_am($child) { $this->_child = $child; if(is_null($this->theme)) $this->theme = get_theme_object($child, false);