Skip to content

Commit

Permalink
Merge pull request #27 from TheExtensionLab/dev
Browse files Browse the repository at this point in the history
Add missing methods to allow prefetcher and parser updates via observer
  • Loading branch information
JamesAnelay committed Jan 11, 2016
2 parents 69eb9a3 + 1b1c62a commit 3422f14
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/code/community/TheExtensionLab/MegaMenu/Model/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public function _matchConstructionPattern($value)
return $constructions;
}

public function setChildParser($key,$modelAlias){
$this->_parsers[$key] = $modelAlias;
}

private function _callPrefetchDirective($construction)
{
$callback = array($this, $construction[1] . 'PrefetchDirective');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public function prefetch($value)
$this->_prefetchWaitingData();
}

public function setChildPrefetcher($key,$modelAlias){
$this->_prefetchModels[$key] = $modelAlias;
}

private function _prepareChildModels()
{
$this->_prefetchModels = $this->_getDefaultPrefetchers();
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/TheExtensionLab/MegaMenu/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<config>
<modules>
<TheExtensionLab_MegaMenu>
<version>1.4.0</version>
<version>1.5.0</version>
</TheExtensionLab_MegaMenu>
</modules>

Expand Down

0 comments on commit 3422f14

Please sign in to comment.