Skip to content

Commit 3422f14

Browse files
committed
Merge pull request #27 from TheExtensionLab/dev
Add missing methods to allow prefetcher and parser updates via observer
2 parents 69eb9a3 + 1b1c62a commit 3422f14

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

app/code/community/TheExtensionLab/MegaMenu/Model/Parser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ public function _matchConstructionPattern($value)
3535
return $constructions;
3636
}
3737

38+
public function setChildParser($key,$modelAlias){
39+
$this->_parsers[$key] = $modelAlias;
40+
}
41+
3842
private function _callPrefetchDirective($construction)
3943
{
4044
$callback = array($this, $construction[1] . 'PrefetchDirective');

app/code/community/TheExtensionLab/MegaMenu/Model/Prefetcher.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public function prefetch($value)
2424
$this->_prefetchWaitingData();
2525
}
2626

27+
public function setChildPrefetcher($key,$modelAlias){
28+
$this->_prefetchModels[$key] = $modelAlias;
29+
}
30+
2731
private function _prepareChildModels()
2832
{
2933
$this->_prefetchModels = $this->_getDefaultPrefetchers();

app/code/community/TheExtensionLab/MegaMenu/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<config>
1010
<modules>
1111
<TheExtensionLab_MegaMenu>
12-
<version>1.4.0</version>
12+
<version>1.5.0</version>
1313
</TheExtensionLab_MegaMenu>
1414
</modules>
1515

0 commit comments

Comments
 (0)