a note for the future
This commit is contained in:
parent
e049ea874d
commit
93540faca8
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue