This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait My_Custom_Trait_Extension_A_Model_Product{ | |
/** | |
* This method loads the original, rewritten class of | |
* Extension_B_Model_Product. Mind the shorthand - you need | |
* to load correct original class. | |
* $this becomes later part of My_Custom_Model_Product context | |
*/ | |
protected function getInstance() | |
{ | |
if ( is_null($this->_instance) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait My_Custom_Trait_Extension_A_Model_Product{ | |
/** | |
* This method loads the original, rewritten class of | |
* Extension_A_Model_Product. Mind the shorthand - you need | |
* to load correct original class. | |
* $this becomes later part of My_Custom_Model_Product context | |
*/ | |
protected function getInstance() | |
{ | |
if ( is_null($this->_instance) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<config> | |
<modules> | |
<My_Custom> | |
<active>true</active> | |
<codePool>local</codePool> | |
<depends> | |
<Extension_A /> | |
<Extension_B /> | |
</depends> | |
</My_Custom> |
NewerOlder