a note for the future

This commit is contained in:
Shish 2012-02-01 17:00:44 +00:00
parent e049ea874d
commit 93540faca8

View file

@ -92,6 +92,9 @@ abstract class SimpleExtension implements Extension {
var $theme; var $theme;
var $_child; 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) { public function i_am($child) {
$this->_child = $child; $this->_child = $child;
if(is_null($this->theme)) $this->theme = get_theme_object($child, false); if(is_null($this->theme)) $this->theme = get_theme_object($child, false);